diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/notification/Notifications.kt b/app/src/main/java/eu/kanade/tachiyomi/data/notification/Notifications.kt index 8ba5e479f9..2b0fe72714 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/notification/Notifications.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/notification/Notifications.kt @@ -19,6 +19,7 @@ object Notifications { const val CHANNEL_COMMON = "common_channel" const val ID_UPDATER = 1 const val ID_DOWNLOAD_IMAGE = 2 + const val ID_INSTALL = 3 /** * Notification channel and ids used by the library updater. diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/updater/UpdaterNotifier.kt b/app/src/main/java/eu/kanade/tachiyomi/data/updater/UpdaterNotifier.kt index 2956637e4c..f72237eb0d 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/updater/UpdaterNotifier.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/updater/UpdaterNotifier.kt @@ -12,7 +12,6 @@ import eu.kanade.tachiyomi.data.notification.NotificationHandler import eu.kanade.tachiyomi.data.notification.NotificationReceiver import eu.kanade.tachiyomi.data.notification.Notifications import eu.kanade.tachiyomi.util.system.getResourceColor -import eu.kanade.tachiyomi.util.system.launchUI import eu.kanade.tachiyomi.util.system.notificationManager /** @@ -149,13 +148,11 @@ internal class UpdaterNotifier(private val context: Context) { addAction( R.drawable.ic_close_24dp, context.getString(R.string.cancel), - NotificationReceiver.dismissNotificationPendingBroadcast(context, Notifications.ID_UPDATER) + NotificationReceiver.dismissNotificationPendingBroadcast(context, Notifications.ID_INSTALL) ) addReleasePageAction() } - launchUI { - notificationBuilder.show() - } + notificationBuilder.show(Notifications.ID_INSTALL) } /**