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

Commit 2825366c authored by Gilles Debunne's avatar Gilles Debunne
Browse files

A double tap starts selection when done on text only.

Change-Id: Id758645d1ebf482a09e35b158e8665d1153db498
parent 4f915bdf
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -8744,7 +8744,8 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener

                        // Double tap detection
                        long duration = SystemClock.uptimeMillis() - mPreviousTapUpTime;
                        if (duration <= ViewConfiguration.getDoubleTapTimeout()) {
                        if (duration <= ViewConfiguration.getDoubleTapTimeout() &&
                                isPositionOnText(x, y)) {
                            final int deltaX = x - mPreviousTapPositionX;
                            final int deltaY = y - mPreviousTapPositionY;
                            final int distanceSquared = deltaX * deltaX + deltaY * deltaY;