From a27ef472943e6dbcae581ba8377d974bb7a3b2a6 Mon Sep 17 00:00:00 2001 From: t-m-w Date: Thu, 3 Oct 2024 16:09:25 -0400 Subject: [PATCH] Fix title of restore notification channel The restore foreground service notification uses the restore channel, which was inadvertently using the title from the error channel, showing "Auto restore flash drive error" when tapping and holding on the notification, and showing that channel name twice in the notification settings. --- .../seedvault/ui/notification/BackupNotificationManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/stevesoltys/seedvault/ui/notification/BackupNotificationManager.kt b/app/src/main/java/com/stevesoltys/seedvault/ui/notification/BackupNotificationManager.kt index 0d4fccef0..11d86ec1b 100644 --- a/app/src/main/java/com/stevesoltys/seedvault/ui/notification/BackupNotificationManager.kt +++ b/app/src/main/java/com/stevesoltys/seedvault/ui/notification/BackupNotificationManager.kt @@ -81,7 +81,7 @@ internal class BackupNotificationManager(private val context: Context) { } private fun getRestoreChannel(): NotificationChannel { - val title = context.getString(R.string.notification_restore_error_channel_title) + val title = context.getString(R.string.notification_restore_channel_title) return NotificationChannel(CHANNEL_ID_RESTORE, title, IMPORTANCE_LOW) }