Skip to content

Commit

Permalink
Fix extension auto installing notification not dismissing/dismissable
Browse files Browse the repository at this point in the history
  • Loading branch information
Jays2Kings committed Apr 15, 2023
1 parent 737ae9b commit 19efd5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ class NotificationReceiver : BroadcastReceiver() {
* Method called when user wants to stop a library update
*
* @param context context of application
* @param notificationId id of notification
*/
private fun cancelExtensionUpdate(context: Context) {
dismissNotification(context, Notifications.ID_EXTENSION_PROGRESS)
ExtensionInstallerJob.stop(context)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class ExtensionInstallerJob(val context: Context, workerParams: WorkerParameters
if (instance?.get() == this) {
instance = null
}

context.notificationManager.cancel(Notifications.ID_EXTENSION_PROGRESS)
return Result.success()
}

Expand Down

0 comments on commit 19efd5d

Please sign in to comment.