From 1559e7a66f8fda6f84daf42da81a93ce2a4d1c05 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 22 Sep 2018 05:36:24 +0000 Subject: [PATCH] Fixed settings --- app/src/main/java/eu/faircode/email/FragmentSetup.java | 4 ++-- app/src/main/java/eu/faircode/email/Helper.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentSetup.java b/app/src/main/java/eu/faircode/email/FragmentSetup.java index 05002736..c786e633 100644 --- a/app/src/main/java/eu/faircode/email/FragmentSetup.java +++ b/app/src/main/java/eu/faircode/email/FragmentSetup.java @@ -101,10 +101,9 @@ public class FragmentSetup extends FragmentEx { }; static final List 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(); diff --git a/app/src/main/java/eu/faircode/email/Helper.java b/app/src/main/java/eu/faircode/email/Helper.java index ff2a7652..f15a8149 100644 --- a/app/src/main/java/eu/faircode/email/Helper.java +++ b/app/src/main/java/eu/faircode/email/Helper.java @@ -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); }