Revert "Enable hiding toolbar for new installations"

This reverts commit ecfc14f044.
This commit is contained in:
M66B 2024-05-28 08:40:03 +02:00
parent b70e9fd085
commit 948eb731ad
3 changed files with 2 additions and 4 deletions

View File

@ -105,7 +105,7 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
@Override
public void setContentView(View view) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
boolean hide_toolbar = prefs.getBoolean("hide_toolbar", true);
boolean hide_toolbar = prefs.getBoolean("hide_toolbar", !BuildConfig.PLAY_STORE_RELEASE);
boolean edge_to_edge = prefs.getBoolean("edge_to_edge", false);
LayoutInflater inflater = LayoutInflater.from(this);

View File

@ -864,8 +864,6 @@ public class ApplicationEx extends Application
if (Helper.isAndroid15())
editor.putInt("last_sdk", 0);
} else if (version < 2187) {
if (!prefs.contains("hide_toolbar"))
editor.putBoolean("hide_toolbar", !BuildConfig.PLAY_STORE_RELEASE);
if (!prefs.contains("delete_unseen"))
editor.putBoolean("delete_unseen", false);
if (Helper.isPixelBeta())

View File

@ -1563,7 +1563,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", true));
swHideToolbar.setChecked(prefs.getBoolean("hide_toolbar", !BuildConfig.PLAY_STORE_RELEASE));
swEdgeToEdge.setChecked(prefs.getBoolean("edge_to_edge", false));
swNavOptions.setChecked(prefs.getBoolean("nav_options", true));
swNavCategories.setChecked(prefs.getBoolean("nav_categories", false));