From 06fe53f6078afc1b348cdc0af89add086d622f75 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Thu, 21 Nov 2019 11:22:24 +0100 Subject: [PATCH] Added icons to podcast settings --- app/src/main/res/xml/feed_settings.xml | 4 ++++ .../core/service/download/DownloadServiceNotification.java | 6 +----- core/src/main/res/drawable/ic_key_grey600.xml | 6 ++++++ .../drawable/{ic_notification_key.xml => ic_key_white.xml} | 0 core/src/main/res/values/attrs.xml | 1 + core/src/main/res/values/styles.xml | 2 ++ 6 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 core/src/main/res/drawable/ic_key_grey600.xml rename core/src/main/res/drawable/{ic_notification_key.xml => ic_key_white.xml} (100%) diff --git a/app/src/main/res/xml/feed_settings.xml b/app/src/main/res/xml/feed_settings.xml index 505248198..edc608d60 100644 --- a/app/src/main/res/xml/feed_settings.xml +++ b/app/src/main/res/xml/feed_settings.xml @@ -4,22 +4,26 @@ 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 431eccc8c..f49257174 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 @@ -15,10 +15,6 @@ import de.danoeh.antennapod.core.util.gui.NotificationUtils; import java.util.ArrayList; import java.util.List; -import java.util.Timer; -import java.util.concurrent.ScheduledExecutorService; -import java.util.concurrent.ScheduledFuture; -import java.util.concurrent.TimeUnit; public class DownloadServiceNotification { private static final String TAG = "DownloadSvcNotification"; @@ -154,7 +150,7 @@ public class DownloadServiceNotification { .setContentText(context.getText(R.string.authentication_notification_msg)) .setStyle(new NotificationCompat.BigTextStyle().bigText(context.getText(R.string.authentication_notification_msg) + ": " + resourceTitle)) - .setSmallIcon(R.drawable.ic_notification_key) + .setSmallIcon(R.drawable.ic_key_white) .setAutoCancel(true) .setContentIntent(ClientConfig.downloadServiceCallbacks.getAuthentificationNotificationContentIntent(context, downloadRequest)); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { diff --git a/core/src/main/res/drawable/ic_key_grey600.xml b/core/src/main/res/drawable/ic_key_grey600.xml new file mode 100644 index 000000000..71cc98f2f --- /dev/null +++ b/core/src/main/res/drawable/ic_key_grey600.xml @@ -0,0 +1,6 @@ + + + diff --git a/core/src/main/res/drawable/ic_notification_key.xml b/core/src/main/res/drawable/ic_key_white.xml similarity index 100% rename from core/src/main/res/drawable/ic_notification_key.xml rename to core/src/main/res/drawable/ic_key_white.xml diff --git a/core/src/main/res/values/attrs.xml b/core/src/main/res/values/attrs.xml index 530b40d46..7745c2bd3 100644 --- a/core/src/main/res/values/attrs.xml +++ b/core/src/main/res/values/attrs.xml @@ -52,6 +52,7 @@ + diff --git a/core/src/main/res/values/styles.xml b/core/src/main/res/values/styles.xml index 476ad247a..f4aa88b06 100644 --- a/core/src/main/res/values/styles.xml +++ b/core/src/main/res/values/styles.xml @@ -74,6 +74,7 @@ @drawable/ic_bug_grey600_24dp @drawable/ic_bookmark_grey600_24dp @drawable/ic_fab_edit_white + @drawable/ic_key_grey600 @color/master_switch_background_light @color/highlight_light @@ -160,6 +161,7 @@ @drawable/ic_bug_white_24dp @drawable/ic_bookmark_white_24dp @drawable/ic_fab_edit_white + @drawable/ic_key_white @color/master_switch_background_dark @color/highlight_dark @style/PreferenceThemeOverlay.v14.Material