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

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

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

Merge commit '87e215fd' into gingerbread-plus-aosp

* commit '87e215fd':
  Made context menu appear when tapping inside selection.
parents 45bd9946 87e215fd
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -6633,6 +6633,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;