mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 22:26:06 +02:00
Set swipe velocity threshold
This commit is contained in:
@@ -700,6 +700,19 @@ public class ApplicationEx extends Application
|
||||
editor.putBoolean("plain_only_reply", true);
|
||||
} else if (version < 2046)
|
||||
editor.remove("message_junk");
|
||||
else if (version < 2069) {
|
||||
if (prefs.contains("swipe_sensitivity") && !prefs.contains("swipe_sensitivity_updated")) {
|
||||
int swipe_sensitivity = prefs.getInt("swipe_sensitivity", FragmentOptionsBehavior.DEFAULT_SWIPE_SENSITIVITY);
|
||||
if (swipe_sensitivity > 0) {
|
||||
swipe_sensitivity--;
|
||||
if (swipe_sensitivity == FragmentOptionsBehavior.DEFAULT_SWIPE_SENSITIVITY)
|
||||
editor.remove("swipe_sensitivity");
|
||||
else
|
||||
editor.putInt("swipe_sensitivity", swipe_sensitivity - 1)
|
||||
.putBoolean("swipe_sensitivity_updated", true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && !BuildConfig.DEBUG)
|
||||
editor.remove("background_service");
|
||||
|
||||
Reference in New Issue
Block a user