Fix crash on long press in TextView
Bug 6058792 Glitch in mEditor handling Change-Id: I9b68796d5038c20d190ba5fbdaff1608b36aaee6
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user