Fix a bug that IME switch disappiers at switching IME subtype.

Bug: 3404788

Change-Id: I741642ac690a1b4c6ca1225ee271bffe39164170
This commit is contained in:
satok
2011-01-30 01:14:02 +09:00
parent 19eecb028f
commit e40dea0d06

View File

@@ -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