1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-03 05:34:51 +00:00

Edge-to-edge: experiment

This commit is contained in:
M66B 2024-10-27 19:35:32 +01:00
parent c06b9e09e0
commit 7a0804e5aa

View file

@ -413,7 +413,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
// Wire controls // Wire controls
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext()); final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
boolean debug = prefs.getBoolean("debug", false); boolean experiments = prefs.getBoolean("experiments", false);
ibHelp.setOnClickListener(new View.OnClickListener() { ibHelp.setOnClickListener(new View.OnClickListener() {
@Override @Override
@ -647,7 +647,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
} }
}); });
//swEdgeToEdge.setVisibility(debug || BuildConfig.DEBUG ? View.VISIBLE : View.GONE); swEdgeToEdge.setVisibility(experiments ? View.VISIBLE : View.GONE);
swEdgeToEdge.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { swEdgeToEdge.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override @Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) { public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {