From 1d6c1c639898cc3991cb8c12bc7727e0baaad4d8 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 26 Jan 2023 07:35:56 +0100 Subject: [PATCH] Auto hide tool bar for non Play Store versions --- app/src/main/java/eu/faircode/email/FragmentFolders.java | 2 +- app/src/main/java/eu/faircode/email/FragmentMessages.java | 2 +- app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentFolders.java b/app/src/main/java/eu/faircode/email/FragmentFolders.java index 4de1a05553..9741486656 100644 --- a/app/src/main/java/eu/faircode/email/FragmentFolders.java +++ b/app/src/main/java/eu/faircode/email/FragmentFolders.java @@ -155,7 +155,7 @@ public class FragmentFolders extends FragmentBase { compact = prefs.getBoolean("compact_folders", true); show_hidden = false; // prefs.getBoolean("hidden_folders", false); show_flagged = prefs.getBoolean("flagged_folders", false); - hide_toolbar = prefs.getBoolean("hide_toolbar", false); + hide_toolbar = prefs.getBoolean("hide_toolbar", !BuildConfig.PLAY_STORE_RELEASE); if (BuildConfig.DEBUG) { ViewModelSelected selectedModel = diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index c51316fde5..28fbe5d2e6 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -486,7 +486,7 @@ public class FragmentMessages extends FragmentBase SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext()); - hide_toolbar = prefs.getBoolean("hide_toolbar", false); + hide_toolbar = prefs.getBoolean("hide_toolbar", !BuildConfig.PLAY_STORE_RELEASE); cards = prefs.getBoolean("cards", true); dividers = prefs.getBoolean("dividers", true); category = prefs.getBoolean("group_category", false); diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java b/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java index 535450ac10..6fd6372973 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java @@ -1427,7 +1427,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer tvColumnWidth.setText(getString(R.string.title_advanced_column_width, NF.format(column_width))); sbColumnWidth.setProgress(column_width); - swHideToolbar.setChecked(prefs.getBoolean("hide_toolbar", false)); + swHideToolbar.setChecked(prefs.getBoolean("hide_toolbar", !BuildConfig.PLAY_STORE_RELEASE)); swNavOptions.setChecked(prefs.getBoolean("nav_options", true)); swNavCategories.setChecked(prefs.getBoolean("nav_categories", false)); swNavLastSync.setChecked(prefs.getBoolean("nav_last_sync", true));