Merge "Properly invalidate text classification cache." into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f0d0e37564
@@ -400,6 +400,7 @@ final class SelectionActionModeHelper {
|
||||
CharSequence text, int selectionStart, int selectionEnd, LocaleList locales) {
|
||||
mTextClassifier = Preconditions.checkNotNull(textClassifier);
|
||||
mText = Preconditions.checkNotNull(text).toString();
|
||||
mLastClassificationText = null; // invalidate.
|
||||
Preconditions.checkArgument(selectionEnd > selectionStart);
|
||||
mSelectionStart = selectionStart;
|
||||
mSelectionEnd = selectionEnd;
|
||||
|
||||
Reference in New Issue
Block a user