|
|
|
@ -69,6 +69,7 @@ public class FragmentOptionsBehavior extends FragmentBase implements SharedPrefe
|
|
|
|
|
private SwitchCompat swQuickScroll;
|
|
|
|
|
private Button btnSwipes;
|
|
|
|
|
private SeekBar sbSwipeSensitivity;
|
|
|
|
|
private SwitchCompat swFolderNav;
|
|
|
|
|
private SwitchCompat swDoubleTap;
|
|
|
|
|
private SwitchCompat swSwipeNav;
|
|
|
|
|
private SwitchCompat swVolumeNav;
|
|
|
|
@ -100,7 +101,7 @@ public class FragmentOptionsBehavior extends FragmentBase implements SharedPrefe
|
|
|
|
|
private final static String[] RESET_OPTIONS = new String[]{
|
|
|
|
|
"sync_on_launch", "double_back", "conversation_actions", "conversation_actions_replies", "language_detection",
|
|
|
|
|
"default_snooze",
|
|
|
|
|
"pull", "autoscroll", "quick_filter", "quick_scroll", "swipe_sensitivity",
|
|
|
|
|
"pull", "autoscroll", "quick_filter", "quick_scroll", "swipe_sensitivity", "foldernav",
|
|
|
|
|
"doubletap", "swipenav", "volumenav", "reversed", "swipe_close", "swipe_move",
|
|
|
|
|
"autoexpand", "expand_first", "expand_all", "expand_one", "collapse_multiple",
|
|
|
|
|
"autoclose", "onclose", "autoclose_unseen", "collapse_marked",
|
|
|
|
@ -131,6 +132,7 @@ public class FragmentOptionsBehavior extends FragmentBase implements SharedPrefe
|
|
|
|
|
swQuickScroll = view.findViewById(R.id.swQuickScroll);
|
|
|
|
|
btnSwipes = view.findViewById(R.id.btnSwipes);
|
|
|
|
|
sbSwipeSensitivity = view.findViewById(R.id.sbSwipeSensitivity);
|
|
|
|
|
swFolderNav = view.findViewById(R.id.swFolderNav);
|
|
|
|
|
swDoubleTap = view.findViewById(R.id.swDoubleTap);
|
|
|
|
|
swSwipeNav = view.findViewById(R.id.swSwipeNav);
|
|
|
|
|
swVolumeNav = view.findViewById(R.id.swVolumeNav);
|
|
|
|
@ -279,6 +281,13 @@ public class FragmentOptionsBehavior extends FragmentBase implements SharedPrefe
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
swFolderNav.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
|
prefs.edit().putBoolean("foldernav", checked).apply();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
swDoubleTap.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
@ -522,6 +531,8 @@ public class FragmentOptionsBehavior extends FragmentBase implements SharedPrefe
|
|
|
|
|
int swipe_sensitivity = prefs.getInt("swipe_sensitivity", DEFAULT_SWIPE_SENSITIVITY);
|
|
|
|
|
sbSwipeSensitivity.setProgress(swipe_sensitivity);
|
|
|
|
|
|
|
|
|
|
swFolderNav.setChecked(prefs.getBoolean("foldernav", false));
|
|
|
|
|
|
|
|
|
|
swDoubleTap.setChecked(prefs.getBoolean("doubletap", true));
|
|
|
|
|
swSwipeNav.setChecked(prefs.getBoolean("swipenav", true));
|
|
|
|
|
swVolumeNav.setChecked(prefs.getBoolean("volumenav", false));
|
|
|
|
|