feat: global notification

This commit is contained in:
rebelonion 2024-03-14 14:16:25 -05:00
parent b654824eb7
commit 6122eb3669
5 changed files with 93 additions and 33 deletions

View file

@ -53,6 +53,9 @@ object Notifications {
const val CHANNEL_COMMENT_WARING = "comment_warning_channel"
const val ID_COMMENT_REPLY = -801
const val CHANNEL_APP_GLOBAL = "app_global"
/**
* Notification channel and ids used for anilist updates.
*/
@ -151,6 +154,9 @@ object Notifications {
setName("Anilist")
setGroup(GROUP_ANILIST)
},
buildNotificationChannel(CHANNEL_APP_GLOBAL, IMPORTANCE_HIGH) {
setName("Global Updates")
},
buildNotificationChannel(CHANNEL_APP_UPDATE, IMPORTANCE_DEFAULT) {
setGroup(GROUP_APK_UPDATES)
setName("App Updates")