Commit bcd468f2 authored by Ricki Hirner's avatar Ricki Hirner

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

parent 21fdf2ce
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment