mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-24 00:51:47 +01:00
Using said notify icons for notifications
This commit is contained in:
parent
873c834957
commit
b7f52955cc
@ -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)
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user