Parcourir la source

Cancel All notification when sync canncelled

Signed-off-by: alperozturk <alper_ozturk@proton.me>
alperozturk il y a 1 an
Parent
commit
e0b5fc1257

+ 1 - 1
app/src/main/java/com/nextcloud/client/files/downloader/DownloadNotificationManager.kt

@@ -117,7 +117,7 @@ class DownloadNotificationManager(
     @Suppress("MagicNumber")
     fun dismissNotification() {
         Handler(Looper.getMainLooper()).postDelayed({
-            notificationManager.cancel(id)
+            notificationManager.cancelAll()
         }, 2000)
     }