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

Commit 01ef02d7 authored by Keisuke Kuroyanagi's avatar Keisuke Kuroyanagi Committed by Android (Google) Code Review
Browse files

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

parents 09388940 e0ac5ac6
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();
    }

    /**