am 87e215fd: Merge "Made context menu appear when tapping inside selection." into gingerbread
Merge commit '87e215fd54559935649fb07264ece600bbabbdf9' into gingerbread-plus-aosp * commit '87e215fd54559935649fb07264ece600bbabbdf9': Made context menu appear when tapping inside selection.
This commit is contained in:
@@ -6633,6 +6633,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