Debug: edge to edge

This commit is contained in:
M66B 2024-05-19 14:14:18 +02:00
parent 0db73c90a0
commit f04cbba28d
1 changed files with 2 additions and 1 deletions

View File

@ -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) {