From c3aa6a7217db9639ce9e064500058992629f07b4 Mon Sep 17 00:00:00 2001 From: Cuong-Tran Date: Tue, 12 Nov 2024 09:15:09 +0700 Subject: [PATCH] create new ID --- .../eu/kanade/tachiyomi/data/notification/Notifications.kt | 1 + .../eu/kanade/tachiyomi/data/updater/AppUpdateNotifier.kt | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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 6b34d124d..cdc540eec 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 @@ -71,6 +71,7 @@ object Notifications { const val CHANNEL_APP_UPDATE = "app_apk_update_channel" const val ID_APP_UPDATER = 1 const val ID_APP_UPDATE_PROMPT = 2 + const val ID_APP_UPDATE_ERROR = 3 const val CHANNEL_EXTENSIONS_UPDATE = "ext_apk_update_channel" const val ID_UPDATES_TO_EXTS = -401 const val ID_EXTENSION_INSTALLER = -402 diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/updater/AppUpdateNotifier.kt b/app/src/main/java/eu/kanade/tachiyomi/data/updater/AppUpdateNotifier.kt index c4c0c8f1e..cc55040c7 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/updater/AppUpdateNotifier.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/updater/AppUpdateNotifier.kt @@ -181,9 +181,9 @@ internal class AppUpdateNotifier(private val context: Context) { addAction( R.drawable.ic_close_24dp, context.stringResource(MR.strings.action_cancel), - NotificationReceiver.dismissNotificationPendingBroadcast(context, Notifications.ID_APP_UPDATE_PROMPT), + NotificationReceiver.dismissNotificationPendingBroadcast(context, Notifications.ID_APP_UPDATE_ERROR), ) } - notificationBuilder.show(Notifications.ID_APP_UPDATE_PROMPT) + notificationBuilder.show(Notifications.ID_APP_UPDATE_ERROR) } }