Fix that setInputMethod throw exception with wrong method id
Change-Id: I8dd9549bbdcba6fb590225f64c82cc9f498435ea
This commit is contained in:
@@ -980,7 +980,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
|
||||
void setInputMethodLocked(String id) {
|
||||
InputMethodInfo info = mMethodMap.get(id);
|
||||
if (info == null) {
|
||||
throw new IllegalArgumentException("Unknown id: " + mCurMethodId);
|
||||
throw new IllegalArgumentException("Unknown id: " + id);
|
||||
}
|
||||
|
||||
if (id.equals(mCurMethodId)) {
|
||||
|
||||
Reference in New Issue
Block a user