From c2909bf2690fef160ae702b2014fd3fa66297e37 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Thu, 26 Mar 2020 19:21:30 +0100 Subject: Updated sync icons --- .../antennapod/core/service/GpodnetSyncService.java | 2 +- .../service/download/DownloadServiceNotification.java | 6 +++--- core/src/main/res/drawable-hdpi/stat_notify_sync.png | Bin 333 -> 0 bytes .../src/main/res/drawable-hdpi/stat_notify_sync_error.png | Bin 352 -> 0 bytes core/src/main/res/drawable-mdpi/stat_notify_sync.png | Bin 227 -> 0 bytes .../src/main/res/drawable-mdpi/stat_notify_sync_error.png | Bin 241 -> 0 bytes core/src/main/res/drawable-xhdpi/stat_notify_sync.png | Bin 368 -> 0 bytes .../main/res/drawable-xhdpi/stat_notify_sync_error.png | Bin 415 -> 0 bytes core/src/main/res/drawable-xxhdpi/stat_notify_sync.png | Bin 545 -> 0 bytes .../main/res/drawable-xxhdpi/stat_notify_sync_error.png | Bin 577 -> 0 bytes core/src/main/res/drawable/auto_download_complete.xml | 9 --------- .../drawable/ic_notification_auto_download_complete.xml | 9 +++++++++ core/src/main/res/drawable/ic_notification_sync.xml | 5 +++++ core/src/main/res/drawable/ic_notification_sync_error.xml | 5 +++++ 14 files changed, 23 insertions(+), 13 deletions(-) delete mode 100644 core/src/main/res/drawable-hdpi/stat_notify_sync.png delete mode 100644 core/src/main/res/drawable-hdpi/stat_notify_sync_error.png delete mode 100644 core/src/main/res/drawable-mdpi/stat_notify_sync.png delete mode 100644 core/src/main/res/drawable-mdpi/stat_notify_sync_error.png delete mode 100644 core/src/main/res/drawable-xhdpi/stat_notify_sync.png delete mode 100644 core/src/main/res/drawable-xhdpi/stat_notify_sync_error.png delete mode 100644 core/src/main/res/drawable-xxhdpi/stat_notify_sync.png delete mode 100644 core/src/main/res/drawable-xxhdpi/stat_notify_sync_error.png delete mode 100644 core/src/main/res/drawable/auto_download_complete.xml create mode 100644 core/src/main/res/drawable/ic_notification_auto_download_complete.xml create mode 100644 core/src/main/res/drawable/ic_notification_sync.xml create mode 100644 core/src/main/res/drawable/ic_notification_sync_error.xml (limited to 'core') diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/GpodnetSyncService.java b/core/src/main/java/de/danoeh/antennapod/core/service/GpodnetSyncService.java index e4d9ff361..70fa4c91f 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/service/GpodnetSyncService.java +++ b/core/src/main/java/de/danoeh/antennapod/core/service/GpodnetSyncService.java @@ -329,7 +329,7 @@ public class GpodnetSyncService extends SafeJobIntentService { .setContentTitle(title) .setContentText(description) .setContentIntent(activityIntent) - .setSmallIcon(R.drawable.stat_notify_sync_error) + .setSmallIcon(R.drawable.ic_notification_sync_error) .setAutoCancel(true) .setVisibility(NotificationCompat.VISIBILITY_PUBLIC) .build(); diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadServiceNotification.java b/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadServiceNotification.java index b6f7e0b8f..59d0266df 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadServiceNotification.java +++ b/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadServiceNotification.java @@ -34,7 +34,7 @@ public class DownloadServiceNotification { notificationCompatBuilder = new NotificationCompat.Builder(context, NotificationUtils.CHANNEL_ID_DOWNLOADING) .setOngoing(true) .setContentIntent(ClientConfig.downloadServiceCallbacks.getNotificationContentIntent(context)) - .setSmallIcon(R.drawable.stat_notify_sync); + .setSmallIcon(R.drawable.ic_notification_sync); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { notificationCompatBuilder.setVisibility(NotificationCompat.VISIBILITY_PUBLIC); } @@ -144,14 +144,14 @@ public class DownloadServiceNotification { // We are generating an auto-download report channelId = NotificationUtils.CHANNEL_ID_AUTO_DOWNLOAD; titleId = R.string.auto_download_report_title; - iconId = R.drawable.auto_download_complete; + iconId = R.drawable.ic_notification_auto_download_complete; intent = ClientConfig.downloadServiceCallbacks.getAutoDownloadReportNotificationContentIntent(context); id = AUTO_REPORT_ID; content = createAutoDownloadNotificationContent(reportQueue); } else { channelId = NotificationUtils.CHANNEL_ID_ERROR; titleId = R.string.download_report_title; - iconId = R.drawable.stat_notify_sync_error; + iconId = R.drawable.ic_notification_sync_error; intent = ClientConfig.downloadServiceCallbacks.getReportNotificationContentIntent(context); id = REPORT_ID; content = String.format(context.getString(R.string.download_report_content), successfulDownloads, failedDownloads); diff --git a/core/src/main/res/drawable-hdpi/stat_notify_sync.png b/core/src/main/res/drawable-hdpi/stat_notify_sync.png deleted file mode 100644 index f70373d50..000000000 Binary files a/core/src/main/res/drawable-hdpi/stat_notify_sync.png and /dev/null differ diff --git a/core/src/main/res/drawable-hdpi/stat_notify_sync_error.png b/core/src/main/res/drawable-hdpi/stat_notify_sync_error.png deleted file mode 100644 index 222e9e8b1..000000000 Binary files a/core/src/main/res/drawable-hdpi/stat_notify_sync_error.png and /dev/null differ diff --git a/core/src/main/res/drawable-mdpi/stat_notify_sync.png b/core/src/main/res/drawable-mdpi/stat_notify_sync.png deleted file mode 100644 index 02066f847..000000000 Binary files a/core/src/main/res/drawable-mdpi/stat_notify_sync.png and /dev/null differ diff --git a/core/src/main/res/drawable-mdpi/stat_notify_sync_error.png b/core/src/main/res/drawable-mdpi/stat_notify_sync_error.png deleted file mode 100644 index d797f59c3..000000000 Binary files a/core/src/main/res/drawable-mdpi/stat_notify_sync_error.png and /dev/null differ diff --git a/core/src/main/res/drawable-xhdpi/stat_notify_sync.png b/core/src/main/res/drawable-xhdpi/stat_notify_sync.png deleted file mode 100644 index d7348168d..000000000 Binary files a/core/src/main/res/drawable-xhdpi/stat_notify_sync.png and /dev/null differ diff --git a/core/src/main/res/drawable-xhdpi/stat_notify_sync_error.png b/core/src/main/res/drawable-xhdpi/stat_notify_sync_error.png deleted file mode 100644 index 78c5df4d9..000000000 Binary files a/core/src/main/res/drawable-xhdpi/stat_notify_sync_error.png and /dev/null differ diff --git a/core/src/main/res/drawable-xxhdpi/stat_notify_sync.png b/core/src/main/res/drawable-xxhdpi/stat_notify_sync.png deleted file mode 100644 index dabb1ea27..000000000 Binary files a/core/src/main/res/drawable-xxhdpi/stat_notify_sync.png and /dev/null differ diff --git a/core/src/main/res/drawable-xxhdpi/stat_notify_sync_error.png b/core/src/main/res/drawable-xxhdpi/stat_notify_sync_error.png deleted file mode 100644 index 6810a8249..000000000 Binary files a/core/src/main/res/drawable-xxhdpi/stat_notify_sync_error.png and /dev/null differ diff --git a/core/src/main/res/drawable/auto_download_complete.xml b/core/src/main/res/drawable/auto_download_complete.xml deleted file mode 100644 index 500d1e156..000000000 --- a/core/src/main/res/drawable/auto_download_complete.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/core/src/main/res/drawable/ic_notification_auto_download_complete.xml b/core/src/main/res/drawable/ic_notification_auto_download_complete.xml new file mode 100644 index 000000000..0caf27836 --- /dev/null +++ b/core/src/main/res/drawable/ic_notification_auto_download_complete.xml @@ -0,0 +1,9 @@ + + + diff --git a/core/src/main/res/drawable/ic_notification_sync.xml b/core/src/main/res/drawable/ic_notification_sync.xml new file mode 100644 index 000000000..c42a78d7d --- /dev/null +++ b/core/src/main/res/drawable/ic_notification_sync.xml @@ -0,0 +1,5 @@ + + + diff --git a/core/src/main/res/drawable/ic_notification_sync_error.xml b/core/src/main/res/drawable/ic_notification_sync_error.xml new file mode 100644 index 000000000..b5be1b747 --- /dev/null +++ b/core/src/main/res/drawable/ic_notification_sync_error.xml @@ -0,0 +1,5 @@ + + + -- cgit v1.2.3