Revert "Swipe left/right one inch"

This reverts commit b2c9e84f1c.
pull/197/head
M66B 4 years ago
parent 228d3df81a
commit 67880e7c42

@ -20,7 +20,6 @@ package eu.faircode.email;
*/
import android.content.Context;
import android.util.DisplayMetrics;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;
@ -31,9 +30,11 @@ public class SwipeListener implements View.OnTouchListener {
private final GestureDetector gestureDetector;
SwipeListener(final Context context, final ISwipeListener listener) {
final DisplayMetrics dm = context.getResources().getDisplayMetrics();
final int MOVE_THRESHOLD = Math.round(dm.xdpi);
final int SPEED_THRESHOLD = Math.round(dm.xdpi * 1.5f);
final int width = Math.min(
context.getResources().getDisplayMetrics().widthPixels,
context.getResources().getDisplayMetrics().heightPixels);
final int MOVE_THRESHOLD = width / 3;
final int SPEED_THRESHOLD = width / 2;
gestureDetector = new GestureDetector(context, new GestureDetector.SimpleOnGestureListener() {
@Override

Loading…
Cancel
Save