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

Commit 6495bfc7 authored by Ken Wakasa's avatar Ken Wakasa
Browse files

Follow-up to I36faf679 Cancel pending messages related to suggestion updates.

bug: 3058217
Change-Id: I54e29bf051b76ad27e6d653adbf14892083ad7eb
parent 3425026d
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -727,6 +727,14 @@ public class LatinIME extends InputMethodService
        if (mUserBigramDictionary != null) mUserBigramDictionary.flushPendingWrites();
    }

    @Override
    public void onFinishInputView(boolean finishingInput) {
        super.onFinishInputView(finishingInput);
        // Remove penging messages related to update suggestions
        mHandler.removeMessages(MSG_UPDATE_SUGGESTIONS);
        mHandler.removeMessages(MSG_UPDATE_OLD_SUGGESTIONS);
    }

    @Override
    public void onUpdateExtractedText(int token, ExtractedText text) {
        super.onUpdateExtractedText(token, text);