Improved settings

This commit is contained in:
topjohnwu
2017-01-26 04:17:51 +08:00
parent b067105660
commit c3c155a1ed
11 changed files with 40 additions and 50 deletions

View File

@@ -45,7 +45,7 @@ public class Global {
public static void init(Context context) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
isDarkTheme = prefs.getString("theme", context.getString(R.string.theme_default_value)).equalsIgnoreCase(context.getString(R.string.theme_dark_value));
isDarkTheme = prefs.getBoolean("dark_theme", false);
devLogging = prefs.getBoolean("developer_logging", false);
shellLogging = prefs.getBoolean("shell_logging", false);
}