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

Commit e0ac5ac6 authored by Keisuke Kuroyanagi's avatar Keisuke Kuroyanagi
Browse files

Reset mWordIteratorWithText when SpellChecker locale is changed.

Bug: 27537808
Change-Id: Ic55b543456cc859673b4c17cc5bf6e4b6da21e13
parent 40fd5fac
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -921,7 +921,8 @@ public class Editor {
    }
    }


    void onLocaleChanged() {
    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;
        mWordIterator = null;
        mWordIteratorWithText = null;
        mWordIteratorWithText = null;
    }
    }
+1 −2
Original line number Original line Diff line number Diff line
@@ -8916,8 +8916,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
    }
    }


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


    /**
    /**