truly...hopefully fix the install update notification not showing

This commit is contained in:
Jays2Kings 2021-07-09 23:52:07 -04:00
parent c30b56693c
commit 8d5c339b34
2 changed files with 3 additions and 5 deletions

View File

@ -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.

View File

@ -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)
}
/**