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

Commit d1dc72a0 authored by Gilles Debunne's avatar Gilles Debunne
Browse files

Long press in empty space stops text selection

Bug 3240058

Change-Id: I888ee691a0fdc89895db43f9ed01acebf7a0b6d3
parent f72a59bb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -7843,6 +7843,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
                mInsertionControllerEnabled) {
            // Long press in empty space moves cursor and shows the Paste affordance if available.
            final int offset = getOffset(mLastDownPositionX, mLastDownPositionY);
            stopSelectionActionMode();
            Selection.setSelection((Spannable)mText, offset);
            getInsertionController().show(0);
            mEatTouchRelease = true;