From 8aff9709c379664625eb5c0b4e672115fb9385d4 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Tue, 5 Nov 2019 15:28:29 +0100 Subject: Style OnlineFeedViewActivity like a dialog User study showed that new users do not get the difference between the actual feed list and the preview. If the preview is a dialog, this is a lot easier to see. Additionally, the "dialog" now closes after the subscription succeeded. --- .../danoeh/antennapod/core/preferences/UserPreferences.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'core/src/main/java') diff --git a/core/src/main/java/de/danoeh/antennapod/core/preferences/UserPreferences.java b/core/src/main/java/de/danoeh/antennapod/core/preferences/UserPreferences.java index be130c00f..86cae3247 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/preferences/UserPreferences.java +++ b/core/src/main/java/de/danoeh/antennapod/core/preferences/UserPreferences.java @@ -182,6 +182,17 @@ public class UserPreferences { } } + public static int getTranslucentTheme() { + int theme = getTheme(); + if (theme == R.style.Theme_AntennaPod_Dark) { + return R.style.Theme_AntennaPod_Dark_Translucent; + } else if (theme == R.style.Theme_AntennaPod_TrueBlack) { + return R.style.Theme_AntennaPod_TrueBlack_Translucent; + } else { + return R.style.Theme_AntennaPod_Light_Translucent; + } + } + public static List getHiddenDrawerItems() { String hiddenItems = prefs.getString(PREF_HIDDEN_DRAWER_ITEMS, ""); return new ArrayList<>(Arrays.asList(TextUtils.split(hiddenItems, ","))); -- cgit v1.2.3