Merge "Fix not to show a log with empty default ime" into lmp-mr1-dev

automerge: ba910df

* commit 'ba910dfaddb2e2926c9c52fbc6ca3f2f8cf1028b':
  Fix not to show a log with empty default ime
This commit is contained in:
Yohei Yukawa
2014-10-31 03:35:40 +00:00
committed by android-build-merger

View File

@@ -774,7 +774,11 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
if (defIm == null && mMethodList.size() > 0) {
defIm = InputMethodUtils.getMostApplicableDefaultIME(
mSettings.getEnabledInputMethodListLocked());
Slog.i(TAG, "No default found, using " + defIm.getId());
if (defIm != null) {
Slog.i(TAG, "Default found, using " + defIm.getId());
} else {
Slog.i(TAG, "No default found");
}
}
if (defIm != null) {
setSelectedInputMethodAndSubtypeLocked(defIm, NOT_A_SUBTYPE_ID, false);