mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-10 08:17:49 +01:00
Fix backup/restore notification channel
This commit is contained in:
parent
2485ef8547
commit
d8e7481118
3 changed files with 8 additions and 4 deletions
|
@ -48,7 +48,7 @@ object Notifications {
|
|||
/**
|
||||
* Notification channel and ids used by the backup/restore system.
|
||||
*/
|
||||
const val CHANNEL_BACKUP = "backup_channel"
|
||||
const val CHANNEL_BACKUP_RESTORE = "backup_restore_channel"
|
||||
const val ID_BACKUP = -501
|
||||
|
||||
/**
|
||||
|
@ -73,8 +73,11 @@ object Notifications {
|
|||
NotificationChannel(CHANNEL_NEW_CHAPTERS, context.getString(R.string.channel_new_chapters),
|
||||
NotificationManager.IMPORTANCE_DEFAULT),
|
||||
NotificationChannel(CHANNEL_UPDATES_TO_EXTS, context.getString(R.string.channel_ext_updates),
|
||||
NotificationManager.IMPORTANCE_DEFAULT
|
||||
)
|
||||
NotificationManager.IMPORTANCE_DEFAULT),
|
||||
NotificationChannel(CHANNEL_BACKUP_RESTORE, context.getString(R.string.channel_backup_restore),
|
||||
NotificationManager.IMPORTANCE_LOW).apply {
|
||||
setShowBadge(false)
|
||||
}
|
||||
)
|
||||
context.notificationManager.createNotificationChannels(channels)
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ import eu.kanade.tachiyomi.util.system.notificationManager
|
|||
|
||||
internal class BackupNotifier(private val context: Context) {
|
||||
|
||||
private val notificationBuilder = context.notificationBuilder(Notifications.CHANNEL_DOWNLOADER) {
|
||||
private val notificationBuilder = context.notificationBuilder(Notifications.CHANNEL_BACKUP_RESTORE) {
|
||||
setLargeIcon(BitmapFactory.decodeResource(context.resources, R.mipmap.ic_launcher))
|
||||
}
|
||||
|
||||
|
|
|
@ -610,5 +610,6 @@
|
|||
<string name="channel_downloader">Downloader</string>
|
||||
<string name="channel_new_chapters">Chapter updates</string>
|
||||
<string name="channel_ext_updates">Extension updates</string>
|
||||
<string name="channel_backup_restore">Backup and restore</string>
|
||||
|
||||
</resources>
|
||||
|
|
Loading…
Reference in a new issue