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

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

Made context menu appear when tapping inside selection.

Change-Id: I7ca274b007f4daea7d37a3d6b10b9504874b3c49
parent 9395b465
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -6628,6 +6628,8 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener

        if (start == end) {
            if (start >= prevStart && start < prevEnd) {
                // Restore previous selection
                Selection.setSelection((Spannable)mText, prevStart, prevEnd);
                // Tapping inside the selection displays the cut/copy/paste context menu.
                showContextMenu();
                return;