Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 371790b7 authored by Jeff Brown's avatar Jeff Brown
Browse files

resolved conflicts for merge of 955e8d79 to master

Change-Id: I90b0d523053d173b7df60ebc975de65ab387ff18
parents 475a0523 955e8d79
Loading
Loading
Loading
Loading
+9 −14
Original line number Diff line number Diff line
@@ -9318,7 +9318,6 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
        private static final int RECENT_CUT_COPY_DURATION = 15 * 1000; // seconds

        // Used to detect taps on the insertion handle, which will affect the PastePopupWindow
        private long mTouchTimer;
        private float mDownPositionX, mDownPositionY;
        private PastePopupWindow mPastePopupWindow;
        private Runnable mHider;
@@ -9392,12 +9391,9 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
                case MotionEvent.ACTION_DOWN:
                    mDownPositionX = ev.getRawX();
                    mDownPositionY = ev.getRawY();
                    mTouchTimer = SystemClock.uptimeMillis();
                    break;

                case MotionEvent.ACTION_UP:
                    long delay = SystemClock.uptimeMillis() - mTouchTimer;
                    if (delay < ViewConfiguration.getTapTimeout()) {
                    final float deltaX = mDownPositionX - ev.getRawX();
                    final float deltaY = mDownPositionY - ev.getRawY();
                    final float distanceSquared = deltaX * deltaX + deltaY * deltaY;
@@ -9409,7 +9405,6 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
                            show(0);
                        }
                    }
                    }
                    hideDelayed();
                    break;