Made up/down arrows default

pull/214/head
M66B 1 year ago
parent 08855c7b64
commit 74306ed5af

@ -761,6 +761,9 @@ public class ApplicationEx extends Application
} else if (version < 2089) { } else if (version < 2089) {
if (!prefs.contains("auto_hide_answer")) if (!prefs.contains("auto_hide_answer"))
editor.putBoolean("auto_hide_answer", !Helper.isAccessibilityEnabled(context)); editor.putBoolean("auto_hide_answer", !Helper.isAccessibilityEnabled(context));
} else if (version < 2108) {
if (!prefs.getBoolean("updown", false))
editor.putBoolean("updown", false);
} }
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && !BuildConfig.DEBUG) if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && !BuildConfig.DEBUG)

@ -1345,7 +1345,7 @@ public class FragmentMessages extends FragmentBase
} }
}); });
if (prefs.getBoolean("updown", false)) { if (prefs.getBoolean("updown", true)) {
boolean reversed = prefs.getBoolean("reversed", false); boolean reversed = prefs.getBoolean("reversed", false);
bottom_navigation.getMenu().findItem(R.id.action_prev) bottom_navigation.getMenu().findItem(R.id.action_prev)
.setIcon(reversed ? R.drawable.twotone_north_24 : R.drawable.twotone_south_24); .setIcon(reversed ? R.drawable.twotone_north_24 : R.drawable.twotone_south_24);

@ -703,7 +703,7 @@ public class FragmentOptionsBehavior extends FragmentBase implements SharedPrefe
swDoubleTap.setChecked(prefs.getBoolean("doubletap", false)); swDoubleTap.setChecked(prefs.getBoolean("doubletap", false));
swSwipeNav.setChecked(prefs.getBoolean("swipenav", true)); swSwipeNav.setChecked(prefs.getBoolean("swipenav", true));
swVolumeNav.setChecked(prefs.getBoolean("volumenav", false)); swVolumeNav.setChecked(prefs.getBoolean("volumenav", false));
swUpDown.setChecked(prefs.getBoolean("updown", false)); swUpDown.setChecked(prefs.getBoolean("updown", true));
swReversed.setChecked(prefs.getBoolean("reversed", false)); swReversed.setChecked(prefs.getBoolean("reversed", false));
swSwipeClose.setChecked(prefs.getBoolean("swipe_close", false)); swSwipeClose.setChecked(prefs.getBoolean("swipe_close", false));
swSwipeMove.setChecked(prefs.getBoolean("swipe_move", false)); swSwipeMove.setChecked(prefs.getBoolean("swipe_move", false));

Loading…
Cancel
Save