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

Commit a3dac8b1 authored by Gilles Debunne's avatar Gilles Debunne Committed by Android Git Automerger
Browse files

am ca1b2615: am 87e215fd: Merge "Made context menu appear when tapping inside...

am ca1b2615: am 87e215fd: Merge "Made context menu appear when tapping inside selection." into gingerbread

Merge commit 'ca1b2615'

* commit 'ca1b2615':
  Made context menu appear when tapping inside selection.
parents 3748b718 ca1b2615
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -6689,6 +6689,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;