Skip to content

Commit 321ced8

Browse files
committed
feat(sync-all): show notifications
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
1 parent b222500 commit 321ced8

1 file changed

Lines changed: 8 additions & 14 deletions

File tree

app/src/main/java/com/nextcloud/client/jobs/folderDownload/FolderDownloadWorkerNotificationManager.kt

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,13 @@ class FolderDownloadWorkerNotificationManager(
2626
private val context: Context,
2727
private val showCancel: Boolean = true,
2828
viewThemeUtils: ViewThemeUtils?
29-
) :
30-
WorkerNotificationManager(
31-
id = NOTIFICATION_ID,
32-
context,
33-
viewThemeUtils,
34-
tickerId = R.string.folder_download_worker_ticker_id,
35-
channelId = NotificationUtils.NOTIFICATION_CHANNEL_DOWNLOAD
36-
) {
29+
) : WorkerNotificationManager(
30+
id = NOTIFICATION_ID,
31+
context,
32+
viewThemeUtils,
33+
tickerId = R.string.folder_download_worker_ticker_id,
34+
channelId = NotificationUtils.NOTIFICATION_CHANNEL_DOWNLOAD
35+
) {
3736

3837
companion object {
3938
private const val NOTIFICATION_ID = 391
@@ -75,12 +74,7 @@ class FolderDownloadWorkerNotificationManager(
7574
}
7675

7776
@Suppress("MagicNumber")
78-
fun showProgressNotification(
79-
folderName: String,
80-
filename: String,
81-
currentIndex: Int,
82-
totalFileSize: Int
83-
) {
77+
fun showProgressNotification(folderName: String, filename: String, currentIndex: Int, totalFileSize: Int) {
8478
mainThread(delay = 0) {
8579
val currentFileIndex = (currentIndex + 1)
8680
val description =

0 commit comments

Comments
 (0)