From ed4dea86860d39ba1e7d18c2191f4ee697753f7b Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 11 Dec 2021 12:59:05 -0500 Subject: [PATCH] Update notification icons Although no recent version of Android even shows these.... --- .../eu/kanade/tachiyomi/data/download/DownloadNotifier.kt | 4 ++-- .../eu/kanade/tachiyomi/data/updater/AppUpdateNotifier.kt | 8 ++++---- .../eu/kanade/tachiyomi/ui/reader/SaveImageNotifier.kt | 2 +- app/src/main/res/drawable/ic_download_24dp.xml | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/download/DownloadNotifier.kt b/app/src/main/java/eu/kanade/tachiyomi/data/download/DownloadNotifier.kt index e73acf1f12..83c2a3afb7 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/download/DownloadNotifier.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/download/DownloadNotifier.kt @@ -84,7 +84,7 @@ internal class DownloadNotifier(private val context: Context) { fun onProgressChange(download: Download) { with(progressNotificationBuilder) { if (!isDownloading) { - setSmallIcon(android.R.drawable.stat_sys_download) + setSmallIcon(R.drawable.ic_photo_24dp) clearActions() // Open download manager when clicked setContentIntent(NotificationHandler.openDownloadManagerPendingActivity(context)) @@ -165,7 +165,7 @@ internal class DownloadNotifier(private val context: Context) { with(completeNotificationBuilder) { setContentTitle(context.getString(R.string.download_notifier_downloader_title)) setContentText(context.getString(R.string.download_notifier_download_finish)) - setSmallIcon(android.R.drawable.stat_sys_download_done) + setSmallIcon(R.drawable.ic_download_24dp) clearActions() setAutoCancel(true) setContentIntent(NotificationHandler.openDownloadManagerPendingActivity(context)) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/updater/AppUpdateNotifier.kt b/app/src/main/java/eu/kanade/tachiyomi/data/updater/AppUpdateNotifier.kt index 00eab8124e..4706533d4f 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/updater/AppUpdateNotifier.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/updater/AppUpdateNotifier.kt @@ -39,12 +39,12 @@ internal class AppUpdateNotifier(private val context: Context) { with(notificationBuilder) { setContentTitle(context.getString(R.string.update_check_notification_update_available)) - setSmallIcon(android.R.drawable.stat_sys_download_done) + setSmallIcon(R.drawable.ic_download_24dp) setContentIntent(updateIntent) clearActions() addAction( - android.R.drawable.stat_sys_download_done, + R.drawable.ic_download_24dp, context.getString(R.string.action_download), updateIntent, ) @@ -66,7 +66,7 @@ internal class AppUpdateNotifier(private val context: Context) { with(notificationBuilder) { title?.let { setContentTitle(title) } setContentText(context.getString(R.string.update_check_notification_download_in_progress)) - setSmallIcon(android.R.drawable.stat_sys_download) + setSmallIcon(R.drawable.ic_photo_24dp) setOngoing(true) } notificationBuilder.show() @@ -95,7 +95,7 @@ internal class AppUpdateNotifier(private val context: Context) { val installIntent = NotificationHandler.installApkPendingActivity(context, uri) with(notificationBuilder) { setContentText(context.getString(R.string.update_check_notification_download_complete)) - setSmallIcon(android.R.drawable.stat_sys_download_done) + setSmallIcon(R.drawable.ic_download_24dp) setOnlyAlertOnce(false) setProgress(0, 0, false) setContentIntent(installIntent) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/SaveImageNotifier.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/SaveImageNotifier.kt index 98e8443040..6818031f03 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/SaveImageNotifier.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/SaveImageNotifier.kt @@ -103,7 +103,7 @@ class SaveImageNotifier(private val context: Context) { with(notificationBuilder) { setContentTitle(context.getString(R.string.download_notifier_title_error)) setContentText(error ?: context.getString(R.string.unknown_error)) - setSmallIcon(android.R.drawable.ic_menu_report_image) + setSmallIcon(R.drawable.ic_error_outline_24dp) } updateNotification() } diff --git a/app/src/main/res/drawable/ic_download_24dp.xml b/app/src/main/res/drawable/ic_download_24dp.xml index 9365670b96..32b27d4bc1 100644 --- a/app/src/main/res/drawable/ic_download_24dp.xml +++ b/app/src/main/res/drawable/ic_download_24dp.xml @@ -4,6 +4,6 @@ android:viewportWidth="24" android:viewportHeight="24">