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

Commit c5bb4591 authored by Brandon Ballinger's avatar Brandon Ballinger Committed by The Android Open Source Project
Browse files

AI 147900: Set symbols state when setting keyboard in LatinIME [bug fix for 1815418].

  BUG=1815418

Automated import of CL 147900
parent 0221514b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -115,6 +115,7 @@ public class KeyboardSwitcher {
    void setKeyboardMode(int mode, int imeOptions, boolean isSymbols) {
        mMode = mode;
        mImeOptions = imeOptions;
        mIsSymbols = isSymbols;
        mInputView.setPreviewEnabled(true);
        KeyboardId id = getKeyboardId(mode, imeOptions, isSymbols);
        LatinKeyboard keyboard = getKeyboard(id);
@@ -226,7 +227,6 @@ public class KeyboardSwitcher {
    }

    void toggleSymbols() {
        mIsSymbols = !mIsSymbols;
        setKeyboardMode(mMode, mImeOptions, mIsSymbols);
        setKeyboardMode(mMode, mImeOptions, !mIsSymbols);
    }
}