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/src/main/java | |
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/src/main/java')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/util/ThemeUtils.java | 21 |
1 files changed, 1 insertions, 20 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) { |