Fix a bug on SwitchToLastInputMethod
Change-Id: Iab7531e7436375941ec3df4fba943af24e2f1231
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user