Set new ext badge count back to 0 if there are no pending updates

This commit is contained in:
Jays2Kings 2021-08-24 16:20:17 -04:00
parent 5a13e0a45c
commit 464b0eb822

View File

@ -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()