mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
#1379 Automatic light/dark theme
This commit is contained in:
parent
fed068b9ca
commit
869ee11520
1 changed files with 1 additions and 1 deletions
|
@ -792,7 +792,7 @@ public class PrefsUtils {
|
||||||
|
|
||||||
public static ThemeValue getSelectedTheme(Context context) {
|
public static ThemeValue getSelectedTheme(Context context) {
|
||||||
SharedPreferences prefs = context.getSharedPreferences(PrefConstants.PREFERENCES, 0);
|
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
|
// check for legacy hard-coded values. this can go away once installs of v152 or earlier are minimized
|
||||||
if (value.equals("light")) {
|
if (value.equals("light")) {
|
||||||
setSelectedTheme(context, ThemeValue.LIGHT);
|
setSelectedTheme(context, ThemeValue.LIGHT);
|
||||||
|
|
Loading…
Add table
Reference in a new issue