Sfoglia il codice sorgente

Use old refresh icon (but with the app's logo)

len 8 anni fa
parent
commit
4578edf157

+ 3 - 3
app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt

@@ -377,7 +377,7 @@ class LibraryUpdateService : Service() {
      */
     private fun showNotification(title: String, body: String) {
         notificationManager.notify(notificationId, notification() {
-            setSmallIcon(R.drawable.notification_icon)
+            setSmallIcon(R.drawable.ic_refresh_white_24dp_img)
             setLargeIcon(notificationBitmap)
             setContentTitle(title)
             setContentText(body)
@@ -393,7 +393,7 @@ class LibraryUpdateService : Service() {
      */
     private fun showProgressNotification(manga: Manga, current: Int, total: Int, cancelIntent: PendingIntent) {
         notificationManager.notify(notificationId, notification() {
-            setSmallIcon(R.drawable.notification_icon)
+            setSmallIcon(R.drawable.ic_refresh_white_24dp_img)
             setLargeIcon(notificationBitmap)
             setContentTitle(manga.title)
             setProgress(total, current, false)
@@ -414,7 +414,7 @@ class LibraryUpdateService : Service() {
         val body = getUpdatedMangasBody(updates, failed)
 
         notificationManager.notify(notificationId, notification() {
-            setSmallIcon(R.drawable.notification_icon)
+            setSmallIcon(R.drawable.ic_refresh_white_24dp_img)
             setLargeIcon(notificationBitmap)
             setContentTitle(title)
             setStyle(NotificationCompat.BigTextStyle().bigText(body))

BIN
app/src/main/res/drawable-hdpi/notification_icon.png


BIN
app/src/main/res/drawable-mdpi/notification_icon.png


BIN
app/src/main/res/drawable-xhdpi/notification_icon.png


BIN
app/src/main/res/drawable-xxhdpi/notification_icon.png