Skip to content

Commit 9f809c2

Browse files
Gilles DebunneAndroid (Google) Code Review
authored andcommitted
Merge "Fix crash on long press in TextView"
2 parents b87148b + f14634e commit 9f809c2

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)