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( static final List<String> EXPORT_SETTINGS = Arrays.asList(
"compress",
"avatars", "avatars",
"light", "light",
"theme"
"sort"
); );
@Override @Override
@ -221,6 +220,7 @@ public class FragmentSetup extends FragmentEx {
prefs.edit().putString("theme", checked ? "dark" : "light").apply(); prefs.edit().putString("theme", checked ? "dark" : "light").apply();
} }
} else { } else {
prefs.edit().putString("theme", "light").apply();
if (checked) { if (checked) {
tbDarkTheme.setChecked(false); tbDarkTheme.setChecked(false);
FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction(); 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) { static boolean isPro(Context context) {
if (true && BuildConfig.DEBUG)
if (false && BuildConfig.DEBUG)
return true; return true;
return PreferenceManager.getDefaultSharedPreferences(context).getBoolean("pro", false); return PreferenceManager.getDefaultSharedPreferences(context).getBoolean("pro", false);
} }


Loading…
Cancel
Save