Skip to content

Commit f14634e

Browse files
author
Gilles Debunne
committed
Fix crash on long press in TextView
Bug 6058792 Glitch in mEditor handling Change-Id: I9b68796d5038c20d190ba5fbdaff1608b36aaee6
1 parent a16c98c commit f14634e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/java/android/widget/TextView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8201,7 +8201,7 @@ public boolean performLongClick() {
82018201
vibrate = false;
82028202
}
82038203

8204-
if (!handled && (mEditor == null || getEditor().mSelectionActionMode != null)) {
8204+
if (!handled && mEditor != null && getEditor().mSelectionActionMode != null) {
82058205
if (touchPositionIsInSelection()) {
82068206
// Start a drag
82078207
final int start = getSelectionStart();

0 commit comments

Comments
 (0)