Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd1b1488 authored by Michael Biebl's avatar Michael Biebl Committed by rhi
Browse files

Properly cancel NOTIFY_REFRESH_COLLECTIONS error notifications

When displaying the notification, we use serviceId as tag, so use
serviceId as well when cancelling it.
parent d8fa5d49
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -281,7 +281,7 @@ class DavService: IntentService("DavService") {

            // cancel previous notification
            NotificationManagerCompat.from(this)
                    .cancel(service.toString(), NotificationUtils.NOTIFY_REFRESH_COLLECTIONS)
                    .cancel(serviceId.toString(), NotificationUtils.NOTIFY_REFRESH_COLLECTIONS)

            // create authenticating OkHttpClient (credentials taken from account settings)
            HttpClient.Builder(this, AccountSettings(this, account))