Re-set PROCESS_TEXT selection if nothing was returned.
Bug: 25043887 Change-Id: If069a5e23f1adf6a2c3aac8fe7e3f19cff2e28ad
This commit is contained in:
@@ -1474,7 +1474,12 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (mText instanceof Spannable) {
|
||||
// Reset the selection.
|
||||
stopTextActionMode();
|
||||
Selection.setSelection((Spannable) mText, getSelectionStart(), getSelectionEnd());
|
||||
}
|
||||
|
||||
if (mEditor.hasSelectionController()) {
|
||||
mEditor.startSelectionActionMode();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user