mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-06 09:03:56 +02:00
Added option to disable previous/next navigation
This commit is contained in:
@@ -38,6 +38,7 @@ public class FragmentOptions extends FragmentEx {
|
||||
private SwitchCompat swBrowse;
|
||||
private SwitchCompat swSwipe;
|
||||
private SwitchCompat swCompact;
|
||||
private SwitchCompat swNav;
|
||||
private SwitchCompat swInsecure;
|
||||
private SwitchCompat swDebug;
|
||||
|
||||
@@ -55,6 +56,7 @@ public class FragmentOptions extends FragmentEx {
|
||||
swBrowse = view.findViewById(R.id.swBrowse);
|
||||
swSwipe = view.findViewById(R.id.swSwipe);
|
||||
swCompact = view.findViewById(R.id.swCompact);
|
||||
swNav = view.findViewById(R.id.swNav);
|
||||
swInsecure = view.findViewById(R.id.swInsecure);
|
||||
swDebug = view.findViewById(R.id.swDebug);
|
||||
|
||||
@@ -114,6 +116,14 @@ public class FragmentOptions extends FragmentEx {
|
||||
}
|
||||
});
|
||||
|
||||
swNav.setChecked(prefs.getBoolean("navigation", true));
|
||||
swNav.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||
@Override
|
||||
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
||||
prefs.edit().putBoolean("navigation", checked).apply();
|
||||
}
|
||||
});
|
||||
|
||||
swInsecure.setChecked(prefs.getBoolean("insecure", false));
|
||||
swInsecure.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user