Skip to content

Commit 39771fb

Browse files
committed
Refresh list when upload is finished
Signed-off-by: alperozturk <alper_ozturk@proton.me>
1 parent 34acd9f commit 39771fb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app/src/main/java/com/nextcloud/client/jobs/upload/FileUploadWorker.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ class FileUploadWorker(
102102
val result = retrievePagesBySortingUploadsByID()
103103
backgroundJobManager.logEndOfWorker(BackgroundJobManagerImpl.formatClassTag(this::class), result)
104104
notificationManager.dismissNotification()
105+
if (result == Result.success()) {
106+
setIdleWorkerState()
107+
}
105108
result
106109
} catch (t: Throwable) {
107110
Log_OC.e(TAG, "Error caught at FileUploadWorker $t")

0 commit comments

Comments
 (0)