Use a constant for the default value of the theme

This commit is contained in:
Thialfihar
2015-07-04 20:24:07 +02:00
parent 306d20f977
commit 1183d6f30c
2 changed files with 2 additions and 1 deletions

View File

@@ -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;
}
}

View File

@@ -393,7 +393,7 @@ public class Preferences {
// fall through
}
case 5: {
setTheme(Constants.Pref.Theme.LIGHT);
setTheme(Constants.Pref.Theme.DEFAULT);
}
}