Disable double tap to read by default

pull/209/head
M66B 2 years ago
parent fb9874dc27
commit 99976b23b6

@ -4133,7 +4133,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
.putExtra("found", viewType == ViewType.SEARCH) .putExtra("found", viewType == ViewType.SEARCH)
.putExtra("searched", searched); .putExtra("searched", searched);
boolean doubletap = prefs.getBoolean("doubletap", true); boolean doubletap = prefs.getBoolean("doubletap", false);
if (!doubletap || if (!doubletap ||
(message.uid == null && message.accountProtocol == EntityAccount.TYPE_IMAP) || (message.uid == null && message.accountProtocol == EntityAccount.TYPE_IMAP) ||

@ -648,6 +648,9 @@ public class ApplicationEx extends Application
else if (version < 1951) { else if (version < 1951) {
if (prefs.contains("open_unsafe")) if (prefs.contains("open_unsafe"))
editor.putBoolean("open_safe", !prefs.getBoolean("open_unsafe", true)); editor.putBoolean("open_safe", !prefs.getBoolean("open_unsafe", true));
} else if (version < 1955) {
if (!prefs.contains("doubletap"))
editor.putBoolean("doubletap", true);
} }
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && !BuildConfig.DEBUG) if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && !BuildConfig.DEBUG)

@ -570,7 +570,7 @@ public class FragmentOptionsBehavior extends FragmentBase implements SharedPrefe
swFolderNav.setChecked(prefs.getBoolean("foldernav", false)); swFolderNav.setChecked(prefs.getBoolean("foldernav", false));
swDoubleTap.setChecked(prefs.getBoolean("doubletap", true)); 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));
swReversed.setChecked(prefs.getBoolean("reversed", false)); swReversed.setChecked(prefs.getBoolean("reversed", false));

Loading…
Cancel
Save