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 == 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;
|
||||||
|
|||||||
Reference in New Issue
Block a user