summaryrefslogtreecommitdiff
path: root/storage/preferences
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2022-12-15 23:18:14 +0100
committerByteHamster <info@bytehamster.com>2022-12-17 10:51:07 +0100
commit1d251492b08ca17852e4a8bb5b0a9638443da9b2 (patch)
treec34e5b60ceb3c94504f7d6ef26fb7dd097a4ae63 /storage/preferences
parent690eb6af8de3f9b8bb55adfdd9f524abe9a7b022 (diff)
downloadAntennaPod-1d251492b08ca17852e4a8bb5b0a9638443da9b2.zip
Add support for Material You tinted theme
Diffstat (limited to 'storage/preferences')
-rw-r--r--storage/preferences/src/main/java/de/danoeh/antennapod/storage/preferences/UserPreferences.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/storage/preferences/src/main/java/de/danoeh/antennapod/storage/preferences/UserPreferences.java b/storage/preferences/src/main/java/de/danoeh/antennapod/storage/preferences/UserPreferences.java
index 56c8975da..895d0ab6f 100644
--- a/storage/preferences/src/main/java/de/danoeh/antennapod/storage/preferences/UserPreferences.java
+++ b/storage/preferences/src/main/java/de/danoeh/antennapod/storage/preferences/UserPreferences.java
@@ -48,6 +48,7 @@ public class UserPreferences {
// User Interface
public static final String PREF_THEME = "prefTheme";
+ public static final String PREF_TINTED_COLORS = "prefTintedColors";
public static final String PREF_HIDDEN_DRAWER_ITEMS = "prefHiddenDrawerItems";
public static final String PREF_DRAWER_FEED_ORDER = "prefDrawerFeedOrder";
public static final String PREF_DRAWER_FEED_COUNTER = "prefDrawerFeedIndicator";
@@ -170,6 +171,10 @@ public class UserPreferences {
}
}
+ public static boolean getIsThemeColorTinted() {
+ return Build.VERSION.SDK_INT >= 31 && prefs.getBoolean(PREF_TINTED_COLORS, false);
+ }
+
public static List<String> getHiddenDrawerItems() {
String hiddenItems = prefs.getString(PREF_HIDDEN_DRAWER_ITEMS, "");
return new ArrayList<>(Arrays.asList(TextUtils.split(hiddenItems, ",")));