Fix an obvious bug in handleLanguageSwitchKey()

bug: 5759092

Change-Id: I8c7b2ef024cbab399d96f6b3ec553da4e9d2fb18
This commit is contained in:
Ken Wakasa 2012-03-11 00:42:40 +09:00
parent 1ce5ff63b1
commit c1ca8815f5

View file

@ -1284,7 +1284,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
} }
private void handleLanguageSwitchKey() { private void handleLanguageSwitchKey() {
final boolean includesOtherImes = !mSettingsValues.mIncludesOtherImesInLanguageSwitchList; final boolean includesOtherImes = mSettingsValues.mIncludesOtherImesInLanguageSwitchList;
final IBinder token = getWindow().getWindow().getAttributes().token; final IBinder token = getWindow().getWindow().getAttributes().token;
if (mShouldSwitchToLastSubtype) { if (mShouldSwitchToLastSubtype) {
final InputMethodSubtypeCompatWrapper lastSubtype = mImm.getLastInputMethodSubtype(); final InputMethodSubtypeCompatWrapper lastSubtype = mImm.getLastInputMethodSubtype();