Merge "Made context menu appear when tapping inside selection." into gingerbread
This commit is contained in:
committed by
Android (Google) Code Review
commit
87e215fd54
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user