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

Commit 5b47ae74 authored by Keisuke Kuroyanagi's avatar Keisuke Kuroyanagi Committed by android-build-merger
Browse files

Merge "Reset mWordIteratorWithText when SpellChecker locale is changed." into nyc-dev

am: 01ef02d7

* commit '01ef02d7':
  Reset mWordIteratorWithText when SpellChecker locale is changed.
parents 60d139cc 01ef02d7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -926,7 +926,8 @@ public class Editor {
    }

    void onLocaleChanged() {
        // Will be re-created on demand in getWordIterator with the proper new locale
        // Will be re-created on demand in getWordIterator and getWordIteratorWithText with the
        // proper new locale
        mWordIterator = null;
        mWordIteratorWithText = null;
    }
+1 −2
Original line number Diff line number Diff line
@@ -8923,8 +8923,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
    }

    void onLocaleChanged() {
        // Will be re-created on demand in getWordIterator with the proper new locale
        mEditor.mWordIterator = null;
        mEditor.onLocaleChanged();
    }

    /**