From 464b0eb822f5b432f7a201bbff2f442c49c7d5ec Mon Sep 17 00:00:00 2001 From: Jays2Kings Date: Tue, 24 Aug 2021 16:20:17 -0400 Subject: [PATCH] Set new ext badge count back to 0 if there are no pending updates --- .../java/eu/kanade/tachiyomi/extension/ExtensionUpdateJob.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/extension/ExtensionUpdateJob.kt b/app/src/main/java/eu/kanade/tachiyomi/extension/ExtensionUpdateJob.kt index 38da45e0e1..6fbe3ab984 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/extension/ExtensionUpdateJob.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/extension/ExtensionUpdateJob.kt @@ -44,6 +44,9 @@ class ExtensionUpdateJob(private val context: Context, workerParams: WorkerParam if (pendingUpdates.isNotEmpty()) { createUpdateNotification(pendingUpdates) + } else { + val preferences: PreferencesHelper by injectLazy() + preferences.extensionUpdatesCount().set(0) } Result.success()