diff options
author | H. Lehmann <ByteHamster@users.noreply.github.com> | 2019-09-10 23:57:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-10 23:57:53 +0200 |
commit | eedd3ce7550fc6bae78a56dc1aa2e86e3ab4ddd3 (patch) | |
tree | a0826b85dfe73cd618f1262ae733d2c7fc4e5b1e /core | |
parent | 16c97535abb9baff1fde0be94e7910c559ce0d0a (diff) | |
parent | bb72636c6838e2415af4458b8932a899a1197a59 (diff) | |
download | AntennaPod-eedd3ce7550fc6bae78a56dc1aa2e86e3ab4ddd3.zip |
Merge pull request #3399 from ByteHamster/remove-unused-color
Removed unused color resource
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/util/ThemeUtils.java | 21 | ||||
-rw-r--r-- | core/src/main/res/values/colors.xml | 4 |
2 files changed, 1 insertions, 24 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/util/ThemeUtils.java b/core/src/main/java/de/danoeh/antennapod/core/util/ThemeUtils.java index 14f091249..1da7a5c50 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/util/ThemeUtils.java +++ b/core/src/main/java/de/danoeh/antennapod/core/util/ThemeUtils.java @@ -3,30 +3,11 @@ package de.danoeh.antennapod.core.util; import android.content.Context; import android.support.annotation.AttrRes; import android.support.annotation.ColorInt; -import android.util.Log; import android.util.TypedValue; -import de.danoeh.antennapod.core.R; -import de.danoeh.antennapod.core.preferences.UserPreferences; - public class ThemeUtils { - private ThemeUtils(){} - - private static final String TAG = "ThemeUtils"; + private ThemeUtils() { - public static int getSelectionBackgroundColor() { - int theme = UserPreferences.getTheme(); - if (theme == R.style.Theme_AntennaPod_Dark) { - return R.color.selection_background_color_dark; - } else if (theme == R.style.Theme_AntennaPod_TrueBlack){ - return R.color.selection_background_color_trueblack; - } else if (theme == R.style.Theme_AntennaPod_Light) { - return R.color.selection_background_color_light; - } else { - Log.e(TAG, - "getSelectionBackgroundColor could not match the current theme to any color!"); - return R.color.selection_background_color_light; - } } public static @ColorInt int getColorFromAttr(Context context, @AttrRes int attr) { diff --git a/core/src/main/res/values/colors.xml b/core/src/main/res/values/colors.xml index 5d820f3cf..0e4533977 100644 --- a/core/src/main/res/values/colors.xml +++ b/core/src/main/res/values/colors.xml @@ -22,10 +22,6 @@ <color name="image_readability_tint">#80000000</color> <color name="feed_image_bg">#50000000</color> - <color name="selection_background_color_trueblack">#286E8A</color> - <color name="selection_background_color_dark">#286E8A</color> - <color name="selection_background_color_light">#81CFEA</color> - <!-- Theme colors --> <color name="primary_light">#FFFFFF</color> <color name="primary_darktheme">#212121</color> |