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

Commit f163b4d3 authored by satok's avatar satok Committed by Android Git Automerger
Browse files

am e40dea0d: Fix a bug that IME switch disappiers at switching IME subtype.

* commit 'e40dea0d':
  Fix a bug that IME switch disappiers at switching IME subtype.
parents d9e6bda6 e40dea0d
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -1053,7 +1053,14 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
                    }
                    if (mCurMethod != null) {
                        try {
                            mImeWindowVis = 0;
                            final Configuration conf = mRes.getConfiguration();
                            final boolean haveHardKeyboard = conf.keyboard
                                    != Configuration.KEYBOARD_NOKEYS;
                            final boolean hardKeyShown = haveHardKeyboard
                                    && conf.hardKeyboardHidden != Configuration.KEYBOARDHIDDEN_YES;
                            mImeWindowVis = (mInputShown || hardKeyShown) ? (
                                    InputMethodService.IME_ACTIVE | InputMethodService.IME_VISIBLE)
                                    : 0;
                            mStatusBar.setImeWindowStatus(mCurToken, mImeWindowVis,
                                    mBackDisposition);
                            // If subtype is null, try to find the most applicable one from