1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 02:07:12 +00:00

Increased sentitivity swipe up to move

This commit is contained in:
M66B 2020-08-08 17:34:15 +02:00
parent 45fa1b4224
commit 6cede265fb

View file

@ -1361,13 +1361,16 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
if (offset == 0) if (offset == 0)
triggered = false; triggered = false;
else if (!triggered && else if (!triggered) {
Math.abs(offset * DEFAULT_TOUCH_DRAG_MOVE_RATIO_FWD) > height / 4) { float dx = Math.abs(offset * DEFAULT_TOUCH_DRAG_MOVE_RATIO_FWD);
if (offset > 0 && dx > height / 4) {
triggered = true;
handleAutoClose();
}
if (offset < 0 && dx > height / 8) {
triggered = true; triggered = true;
if (offset > 0)
handleAutoClose();
else {
Bundle args = new Bundle(); Bundle args = new Bundle();
args.putString("title", getString(R.string.title_move_to_folder)); args.putString("title", getString(R.string.title_move_to_folder));
args.putLong("account", account); args.putLong("account", account);