Fix a bug on SwitchToLastInputMethod

Change-Id: Iab7531e7436375941ec3df4fba943af24e2f1231
This commit is contained in:
satok
2011-05-20 22:13:38 +09:00
parent 4fc87d61c2
commit 208d563404

View File

@@ -1376,7 +1376,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
synchronized (mMethodMap) {
final Pair<String, String> lastIme = mSettings.getLastInputMethodAndSubtypeLocked();
final InputMethodInfo lastImi;
if (lastIme == null) {
if (lastIme != null) {
lastImi = mMethodMap.get(lastIme.first);
} else {
lastImi = null;