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

Commit 87e215fd authored by Gilles Debunne's avatar Gilles Debunne Committed by Android (Google) Code Review
Browse files

Merge "Made context menu appear when tapping inside selection." into gingerbread

parents fec5d38b b1892497
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -6628,6 +6628,8 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener


        if (start == end) {
        if (start == end) {
            if (start >= prevStart && start < prevEnd) {
            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.
                // Tapping inside the selection displays the cut/copy/paste context menu.
                showContextMenu();
                showContextMenu();
                return;
                return;