Fix crash on long press in TextView

Bug 6058792

Glitch in mEditor handling

Change-Id: I9b68796d5038c20d190ba5fbdaff1608b36aaee6
This commit is contained in:
Gilles Debunne
2012-02-24 17:01:56 -08:00
parent a16c98c155
commit f14634e491

View File

@@ -8201,7 +8201,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
vibrate = false;
}
if (!handled && (mEditor == null || getEditor().mSelectionActionMode != null)) {
if (!handled && mEditor != null && getEditor().mSelectionActionMode != null) {
if (touchPositionIsInSelection()) {
// Start a drag
final int start = getSelectionStart();