|
|
|
@ -72,6 +72,7 @@ public class FragmentOptionsBehavior extends FragmentBase implements SharedPrefe
|
|
|
|
|
private SwitchCompat swAutoScroll;
|
|
|
|
|
private SwitchCompat swQuickFilter;
|
|
|
|
|
private SwitchCompat swQuickScroll;
|
|
|
|
|
private SwitchCompat swQuickActions;
|
|
|
|
|
private Button btnSwipes;
|
|
|
|
|
private SeekBar sbSwipeSensitivity;
|
|
|
|
|
private SwitchCompat swFolderNav;
|
|
|
|
@ -107,7 +108,7 @@ public class FragmentOptionsBehavior extends FragmentBase implements SharedPrefe
|
|
|
|
|
private final static String[] RESET_OPTIONS = new String[]{
|
|
|
|
|
"restore_on_launch", "sync_on_launch", "double_back", "conversation_actions", "conversation_actions_replies", "language_detection",
|
|
|
|
|
"photo_picker", "default_snooze",
|
|
|
|
|
"pull", "autoscroll", "quick_filter", "quick_scroll", "swipe_sensitivity", "foldernav",
|
|
|
|
|
"pull", "autoscroll", "quick_filter", "quick_scroll", "quick_actions", "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",
|
|
|
|
@ -140,6 +141,7 @@ public class FragmentOptionsBehavior extends FragmentBase implements SharedPrefe
|
|
|
|
|
swAutoScroll = view.findViewById(R.id.swAutoScroll);
|
|
|
|
|
swQuickFilter = view.findViewById(R.id.swQuickFilter);
|
|
|
|
|
swQuickScroll = view.findViewById(R.id.swQuickScroll);
|
|
|
|
|
swQuickActions = view.findViewById(R.id.swQuickActions);
|
|
|
|
|
btnSwipes = view.findViewById(R.id.btnSwipes);
|
|
|
|
|
sbSwipeSensitivity = view.findViewById(R.id.sbSwipeSensitivity);
|
|
|
|
|
swFolderNav = view.findViewById(R.id.swFolderNav);
|
|
|
|
@ -289,6 +291,13 @@ public class FragmentOptionsBehavior extends FragmentBase implements SharedPrefe
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
swQuickActions.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
|
prefs.edit().putBoolean("quick_actions", checked).apply();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
btnSwipes.setOnClickListener(new View.OnClickListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onClick(View v) {
|
|
|
|
@ -574,6 +583,7 @@ public class FragmentOptionsBehavior extends FragmentBase implements SharedPrefe
|
|
|
|
|
swAutoScroll.setChecked(prefs.getBoolean("autoscroll", false));
|
|
|
|
|
swQuickFilter.setChecked(prefs.getBoolean("quick_filter", false));
|
|
|
|
|
swQuickScroll.setChecked(prefs.getBoolean("quick_scroll", true));
|
|
|
|
|
swQuickActions.setChecked(prefs.getBoolean("quick_actions", true));
|
|
|
|
|
|
|
|
|
|
int swipe_sensitivity = prefs.getInt("swipe_sensitivity", DEFAULT_SWIPE_SENSITIVITY);
|
|
|
|
|
sbSwipeSensitivity.setProgress(swipe_sensitivity);
|
|
|
|
|