From e94bdba8200d2c8889247f7a58adfabde9bb648e Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 28 Oct 2024 08:39:25 +0100 Subject: [PATCH] Edge-to-edge is not for production yet --- .../main/java/eu/faircode/email/FragmentOptionsDisplay.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java b/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java index be6890696e..25748310a2 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java @@ -413,7 +413,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer // Wire controls final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext()); - boolean experiments = prefs.getBoolean("experiments", false); + boolean debug = prefs.getBoolean("debug", false); ibHelp.setOnClickListener(new View.OnClickListener() { @Override @@ -647,7 +647,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer } }); - swEdgeToEdge.setVisibility(experiments ? View.VISIBLE : View.GONE); + swEdgeToEdge.setVisibility(debug || BuildConfig.DEBUG ? View.VISIBLE : View.GONE); swEdgeToEdge.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {