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

Commit 97a8728b authored by Wilson Wu's avatar Wilson Wu
Browse files

Clear mIsInputMethodSuppressingSpellChecker when UNBIND

The mIsInputMethodSuppressingSpellChecker flag is a
per-binding state. It should be cleared when UNBIND
happened instead of finishInputLocked().

Bug: 237341582
Test: atest CtsInputMethodTestCases:SpellCheckerTest
Change-Id: I160650780c4ab321f1eebab443b93aeea164c54f
parent 85ff9c86
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1645,6 +1645,7 @@ public final class InputMethodManager {
        mCurId = null;
        mCurMethod = null; // for @UnsupportedAppUsage
        mCurrentInputMethodSession = null;
        mIsInputMethodSuppressingSpellChecker = false;
    }

    /**
@@ -1707,7 +1708,6 @@ public final class InputMethodManager {
    @GuardedBy("mH")
    void finishInputLocked() {
        mVirtualDisplayToScreenMatrix = null;
        mIsInputMethodSuppressingSpellChecker = false;
        setNextServedViewLocked(null);
        if (getServedViewLocked() != null) {
            if (DEBUG) {