diff options
author | Martin Fietz <Martin.Fietz@gmail.com> | 2016-01-05 14:00:06 +0100 |
---|---|---|
committer | Martin Fietz <Martin.Fietz@gmail.com> | 2016-01-05 14:00:06 +0100 |
commit | 3d948c45390db22308628e462c148b70e09744ec (patch) | |
tree | def6431b1b2edd2cf98575dc27f57da33b3be0e2 | |
parent | 15e68d53ba02ba798bf2a2da35de14e809a3ab1b (diff) | |
parent | 2116a359010bed2d660c7cc0da6a0f471e6b18bc (diff) | |
download | AntennaPod-3d948c45390db22308628e462c148b70e09744ec.zip |
Merge pull request #1513 from mfietz/issue/1477-history-highlight
Consider theme when highlighting
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/adapter/FeedItemlistAdapter.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/adapter/FeedItemlistAdapter.java b/app/src/main/java/de/danoeh/antennapod/adapter/FeedItemlistAdapter.java index 1972e675e..e1d158d6a 100644 --- a/app/src/main/java/de/danoeh/antennapod/adapter/FeedItemlistAdapter.java +++ b/app/src/main/java/de/danoeh/antennapod/adapter/FeedItemlistAdapter.java @@ -21,6 +21,7 @@ import de.danoeh.antennapod.R; import de.danoeh.antennapod.core.feed.FeedItem; import de.danoeh.antennapod.core.feed.FeedMedia; import de.danoeh.antennapod.core.feed.MediaType; +import de.danoeh.antennapod.core.preferences.UserPreferences; import de.danoeh.antennapod.core.storage.DownloadRequester; import de.danoeh.antennapod.core.util.ThemeUtils; @@ -57,7 +58,11 @@ public class FeedItemlistAdapter extends BaseAdapter { this.actionButtonUtils = new ActionButtonUtils(context); this.makePlayedItemsTransparent = makePlayedItemsTransparent; - playingBackGroundColor = context.getResources().getColor(R.color.highlight_light); + if(UserPreferences.getTheme() == R.style.Theme_AntennaPod_Dark) { + playingBackGroundColor = context.getResources().getColor(R.color.highlight_dark); + } else { + playingBackGroundColor = context.getResources().getColor(R.color.highlight_light); + } normalBackGroundColor = context.getResources().getColor(android.R.color.transparent); } |