mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-20 04:29:18 +01:00
truly...hopefully fix the install update notification not showing
This commit is contained in:
parent
c30b56693c
commit
8d5c339b34
@ -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.
|
||||
|
@ -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)
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user