Browse Source

Fixed settings

main
M66B 6 years ago
parent
commit
1559e7a66f
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      app/src/main/java/eu/faircode/email/FragmentSetup.java
  2. +1
    -1
      app/src/main/java/eu/faircode/email/Helper.java

+ 2
- 2
app/src/main/java/eu/faircode/email/FragmentSetup.java 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();


+ 1
- 1
app/src/main/java/eu/faircode/email/Helper.java 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);
}


Loading…
Cancel
Save