Disable auto scroll by default

pull/193/head
M66B 4 years ago
parent 12f70ec8ef
commit 90009955c5

@ -401,6 +401,9 @@ public class ApplicationEx extends Application
} else if (version < 1461) { } else if (version < 1461) {
if (!prefs.contains("theme")) if (!prefs.contains("theme"))
editor.putString("theme", "blue_orange_light"); editor.putString("theme", "blue_orange_light");
} else if (version < 1463) {
if (!prefs.contains("autoscroll"))
editor.putBoolean("autoscroll", true);
} }
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && !BuildConfig.DEBUG) if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && !BuildConfig.DEBUG)

@ -4647,7 +4647,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
return; return;
} else { } else {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext()); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
boolean autoscroll = prefs.getBoolean("autoscroll", true); boolean autoscroll = prefs.getBoolean("autoscroll", false);
if (autoscroll) { if (autoscroll) {
ActivityView activity = (ActivityView) getActivity(); ActivityView activity = (ActivityView) getActivity();
if (activity != null && if (activity != null &&

@ -445,7 +445,7 @@ public class FragmentOptionsBehavior extends FragmentBase implements SharedPrefe
etDefaultSnooze.setHint("1"); etDefaultSnooze.setHint("1");
swPull.setChecked(prefs.getBoolean("pull", true)); swPull.setChecked(prefs.getBoolean("pull", true));
swAutoScroll.setChecked(prefs.getBoolean("autoscroll", true)); swAutoScroll.setChecked(prefs.getBoolean("autoscroll", false));
swQuickFilter.setChecked(prefs.getBoolean("quick_filter", false)); swQuickFilter.setChecked(prefs.getBoolean("quick_filter", false));
swQuickScroll.setChecked(prefs.getBoolean("quick_scroll", true)); swQuickScroll.setChecked(prefs.getBoolean("quick_scroll", true));

Loading…
Cancel
Save