Using said notify icons for notifications

This commit is contained in:
Jays2Kings 2021-07-19 00:03:26 -04:00
parent 873c834957
commit b7f52955cc
3 changed files with 6 additions and 6 deletions

View File

@ -21,14 +21,14 @@ class BackupNotifier(private val context: Context) {
private val progressNotificationBuilder = context.notificationBuilder(Notifications.CHANNEL_BACKUP_RESTORE_PROGRESS) { private val progressNotificationBuilder = context.notificationBuilder(Notifications.CHANNEL_BACKUP_RESTORE_PROGRESS) {
setLargeIcon(BitmapFactory.decodeResource(context.resources, R.mipmap.ic_launcher)) setLargeIcon(BitmapFactory.decodeResource(context.resources, R.mipmap.ic_launcher))
setSmallIcon(R.drawable.ic_tachi) setSmallIcon(R.drawable.ic_tachij2k_notification)
setAutoCancel(false) setAutoCancel(false)
setOngoing(true) setOngoing(true)
} }
private val completeNotificationBuilder = context.notificationBuilder(Notifications.CHANNEL_BACKUP_RESTORE_COMPLETE) { private val completeNotificationBuilder = context.notificationBuilder(Notifications.CHANNEL_BACKUP_RESTORE_COMPLETE) {
setLargeIcon(BitmapFactory.decodeResource(context.resources, R.mipmap.ic_launcher)) setLargeIcon(BitmapFactory.decodeResource(context.resources, R.mipmap.ic_launcher))
setSmallIcon(R.drawable.ic_tachi) setSmallIcon(R.drawable.ic_tachij2k_notification)
setAutoCancel(false) setAutoCancel(false)
} }

View File

@ -112,7 +112,7 @@ class LibraryUpdateNotifier(private val context: Context) {
} }
) )
) )
setSmallIcon(R.drawable.ic_tachi) setSmallIcon(R.drawable.ic_tachij2k_notification)
addAction( addAction(
R.drawable.nnf_ic_file_folder, R.drawable.nnf_ic_file_folder,
context.getString(R.string.view_all_errors), context.getString(R.string.view_all_errors),
@ -141,7 +141,7 @@ class LibraryUpdateNotifier(private val context: Context) {
notifications.add( notifications.add(
Pair( Pair(
context.notification(Notifications.CHANNEL_NEW_CHAPTERS) { context.notification(Notifications.CHANNEL_NEW_CHAPTERS) {
setSmallIcon(R.drawable.ic_tachi) setSmallIcon(R.drawable.ic_tachij2k_notification)
try { try {
val request = ImageRequest.Builder(context).data(manga) val request = ImageRequest.Builder(context).data(manga)
.parameters( .parameters(
@ -211,7 +211,7 @@ class LibraryUpdateNotifier(private val context: Context) {
notify( notify(
Notifications.ID_NEW_CHAPTERS, Notifications.ID_NEW_CHAPTERS,
context.notification(Notifications.CHANNEL_NEW_CHAPTERS) { context.notification(Notifications.CHANNEL_NEW_CHAPTERS) {
setSmallIcon(R.drawable.ic_tachi) setSmallIcon(R.drawable.ic_tachij2k_notification)
setLargeIcon(notificationBitmap) setLargeIcon(notificationBitmap)
setContentTitle(context.getString(R.string.new_chapters_found)) setContentTitle(context.getString(R.string.new_chapters_found))
color = ContextCompat.getColor(context, R.color.colorAccent) color = ContextCompat.getColor(context, R.color.colorAccent)

View File

@ -15,7 +15,7 @@ import java.io.IOException
class CrashLogUtil(private val context: Context) { class CrashLogUtil(private val context: Context) {
private val notificationBuilder = context.notificationBuilder(Notifications.CHANNEL_CRASH_LOGS) { private val notificationBuilder = context.notificationBuilder(Notifications.CHANNEL_CRASH_LOGS) {
setSmallIcon(R.drawable.ic_tachi) setSmallIcon(R.drawable.ic_tachij2k_notification)
} }
fun dumpLogs() { fun dumpLogs() {