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) {
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)
}

View File

@ -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)

View File

@ -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() {