Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6400a4a8 authored by Abodunrinwa Toki's avatar Abodunrinwa Toki Committed by android-build-merger
Browse files

Merge "Properly invalidate text classification cache." into oc-dev

am: f0d0e375

Change-Id: I996ef66340d7f466dce6c74a92d6105aa647a0a1
parents bb6db1d6 f0d0e375
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;