mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-20 01:39:18 +01:00
Set new ext badge count back to 0 if there are no pending updates
This commit is contained in:
parent
5a13e0a45c
commit
464b0eb822
@ -44,6 +44,9 @@ class ExtensionUpdateJob(private val context: Context, workerParams: WorkerParam
|
|||||||
|
|
||||||
if (pendingUpdates.isNotEmpty()) {
|
if (pendingUpdates.isNotEmpty()) {
|
||||||
createUpdateNotification(pendingUpdates)
|
createUpdateNotification(pendingUpdates)
|
||||||
|
} else {
|
||||||
|
val preferences: PreferencesHelper by injectLazy()
|
||||||
|
preferences.extensionUpdatesCount().set(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
Result.success()
|
Result.success()
|
||||||
|
Loading…
Reference in New Issue
Block a user