From b7f52955cc42c4435b868d52bec250563a00b1bd Mon Sep 17 00:00:00 2001 From: Jays2Kings Date: Mon, 19 Jul 2021 00:03:26 -0400 Subject: [PATCH] Using said notify icons for notifications --- .../java/eu/kanade/tachiyomi/data/backup/BackupNotifier.kt | 4 ++-- .../kanade/tachiyomi/data/library/LibraryUpdateNotifier.kt | 6 +++--- app/src/main/java/eu/kanade/tachiyomi/util/CrashLogUtil.kt | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupNotifier.kt b/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupNotifier.kt index f72c82dd83..e019810b8a 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupNotifier.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupNotifier.kt @@ -21,14 +21,14 @@ class BackupNotifier(private val context: Context) { private val progressNotificationBuilder = context.notificationBuilder(Notifications.CHANNEL_BACKUP_RESTORE_PROGRESS) { setLargeIcon(BitmapFactory.decodeResource(context.resources, R.mipmap.ic_launcher)) - setSmallIcon(R.drawable.ic_tachi) + setSmallIcon(R.drawable.ic_tachij2k_notification) setAutoCancel(false) setOngoing(true) } private val completeNotificationBuilder = context.notificationBuilder(Notifications.CHANNEL_BACKUP_RESTORE_COMPLETE) { setLargeIcon(BitmapFactory.decodeResource(context.resources, R.mipmap.ic_launcher)) - setSmallIcon(R.drawable.ic_tachi) + setSmallIcon(R.drawable.ic_tachij2k_notification) setAutoCancel(false) } diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateNotifier.kt b/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateNotifier.kt index 6df0679430..cc9f007458 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateNotifier.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateNotifier.kt @@ -112,7 +112,7 @@ class LibraryUpdateNotifier(private val context: Context) { } ) ) - setSmallIcon(R.drawable.ic_tachi) + setSmallIcon(R.drawable.ic_tachij2k_notification) addAction( R.drawable.nnf_ic_file_folder, context.getString(R.string.view_all_errors), @@ -141,7 +141,7 @@ class LibraryUpdateNotifier(private val context: Context) { notifications.add( Pair( context.notification(Notifications.CHANNEL_NEW_CHAPTERS) { - setSmallIcon(R.drawable.ic_tachi) + setSmallIcon(R.drawable.ic_tachij2k_notification) try { val request = ImageRequest.Builder(context).data(manga) .parameters( @@ -211,7 +211,7 @@ class LibraryUpdateNotifier(private val context: Context) { notify( Notifications.ID_NEW_CHAPTERS, context.notification(Notifications.CHANNEL_NEW_CHAPTERS) { - setSmallIcon(R.drawable.ic_tachi) + setSmallIcon(R.drawable.ic_tachij2k_notification) setLargeIcon(notificationBitmap) setContentTitle(context.getString(R.string.new_chapters_found)) color = ContextCompat.getColor(context, R.color.colorAccent) diff --git a/app/src/main/java/eu/kanade/tachiyomi/util/CrashLogUtil.kt b/app/src/main/java/eu/kanade/tachiyomi/util/CrashLogUtil.kt index c9f33f5221..6df3ab3516 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/util/CrashLogUtil.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/util/CrashLogUtil.kt @@ -15,7 +15,7 @@ import java.io.IOException class CrashLogUtil(private val context: Context) { private val notificationBuilder = context.notificationBuilder(Notifications.CHANNEL_CRASH_LOGS) { - setSmallIcon(R.drawable.ic_tachi) + setSmallIcon(R.drawable.ic_tachij2k_notification) } fun dumpLogs() {