mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Set new ext badge count back to 0 if there are no pending updates
This commit is contained in:
parent
5a13e0a45c
commit
464b0eb822
1 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue