Use a constant for the default value of the theme
This commit is contained in:
1 parent
306d20f977
commit
1183d6f30c
2 files changed
+2
-1
No files matched your search
@@ -108,6 +108,7 @@ public final class Constants {
|
||||
public static final class Theme {
|
||||
public static final String LIGHT = "light";
|
||||
public static final String DARK = "dark";
|
||||
public static final String DEFAULT = Constants.Pref.Theme.LIGHT;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -393,7 +393,7 @@ public class Preferences {
|
||||
// fall through
|
||||
}
|
||||
case 5: {
|
||||
setTheme(Constants.Pref.Theme.LIGHT);
|
||||
setTheme(Constants.Pref.Theme.DEFAULT);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user