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

Commit bcd468f2 authored by Ricki Hirner's avatar Ricki Hirner
Browse files

DAV service detection: cancel previous notification (MR #15 thanks @mbiebl)

parent 21fdf2ce
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -289,6 +289,10 @@ class DavService: Service() {
            try {
                Logger.log.info("Refreshing $serviceType collections of service #$service")

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

                Settings.getInstance(this)?.use { settings ->
                    // create authenticating OkHttpClient (credentials taken from account settings)
                    HttpClient.Builder(this, settings, AccountSettings(this, settings, account))