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

Commit 3dd4bcb2 authored by Jean Chalard's avatar Jean Chalard Committed by Android (Google) Code Review
Browse files

Merge "Recompute suggestions on language change."

parents 65fe7f79 b84ee82e
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2293,6 +2293,14 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
        }
        initSuggest();
        loadSettings();
        // Since we just changed languages, we should re-evaluate suggestions with whatever word
        // we are currently composing. If we are not composing anything, we may want to display
        // predictions or punctuation signs (which is done by updateBigramPredictions anyway).
        if (isCursorTouchingWord()) {
            mHandler.postUpdateSuggestions();
        } else {
            mHandler.postUpdateBigramPredictions();
        }
    }

    public void hapticAndAudioFeedback(int primaryCode) {