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

Commit 33c25e49 authored by Gilles Debunne's avatar Gilles Debunne Committed by Android (Google) Code Review
Browse files

Merge "Bug 5575396: close spell session on language change"

parents e9a291e7 56735447
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -88,6 +88,7 @@ public class SpellChecker implements SpellCheckerSessionListener {
    }

    private void setLocale(Locale locale) {
        closeSession();
        final TextServicesManager textServicesManager = (TextServicesManager)
                mTextView.getContext().getSystemService(Context.TEXT_SERVICES_MANAGER_SERVICE);
        if (!textServicesManager.isSpellCheckerEnabled()) {
@@ -107,8 +108,6 @@ public class SpellChecker implements SpellCheckerSessionListener {
        }
        mLength = 0;

        // Reset the SpellParser pool: they will get re-created on demand
        stopAllSpellParsers();
        mSpellParsers = new SpellParser[0];

        // This class is the global listener for locale change: warn other locale-aware objects