From f04cbba28de2e120953ae8c3a27de4342f369104 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 19 May 2024 14:14:18 +0200 Subject: [PATCH] Debug: edge to edge --- .../main/java/eu/faircode/email/FragmentOptionsDisplay.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java b/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java index 7e74f21794..68b3dacd26 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java @@ -405,6 +405,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer // Wire controls final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext()); + boolean debug = prefs.getBoolean("debug", false); ibHelp.setOnClickListener(new View.OnClickListener() { @Override @@ -646,7 +647,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer } }); - swEdgeToEdge.setVisibility(BuildConfig.DEBUG ? 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) {