Fixed settings

This commit is contained in:
M66B
2018-09-22 05:36:24 +00:00
parent 1eb0363324
commit 1559e7a66f
2 changed files with 3 additions and 3 deletions

View File

@@ -101,10 +101,9 @@ public class FragmentSetup extends FragmentEx {
};
static final List<String> EXPORT_SETTINGS = Arrays.asList(
"compress",
"avatars",
"light",
"theme"
"sort"
);
@Override
@@ -221,6 +220,7 @@ public class FragmentSetup extends FragmentEx {
prefs.edit().putString("theme", checked ? "dark" : "light").apply();
}
} else {
prefs.edit().putString("theme", "light").apply();
if (checked) {
tbDarkTheme.setChecked(false);
FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();

View File

@@ -329,7 +329,7 @@ public class Helper {
}
static boolean isPro(Context context) {
if (true && BuildConfig.DEBUG)
if (false && BuildConfig.DEBUG)
return true;
return PreferenceManager.getDefaultSharedPreferences(context).getBoolean("pro", false);
}