#1379 Automatic light/dark theme

This commit is contained in:
sictiru 2020-10-24 09:02:35 -07:00
parent fed068b9ca
commit 869ee11520

View file

@ -792,7 +792,7 @@ public class PrefsUtils {
public static ThemeValue getSelectedTheme(Context context) {
SharedPreferences prefs = context.getSharedPreferences(PrefConstants.PREFERENCES, 0);
String value = prefs.getString(PrefConstants.THEME, ThemeValue.LIGHT.name());
String value = prefs.getString(PrefConstants.THEME, ThemeValue.AUTO.name());
// check for legacy hard-coded values. this can go away once installs of v152 or earlier are minimized
if (value.equals("light")) {
setSelectedTheme(context, ThemeValue.LIGHT);