OSDN Git Service

Fix a bug on SwitchToLastInputMethod
authorsatok <satok@google.com>
Fri, 20 May 2011 13:13:38 +0000 (22:13 +0900)
committersatok <satok@google.com>
Fri, 20 May 2011 13:13:38 +0000 (22:13 +0900)
Change-Id: Iab7531e7436375941ec3df4fba943af24e2f1231

services/java/com/android/server/InputMethodManagerService.java

index eb21434..c365af5 100644 (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;