Skip to content

Commit 2656abe

Browse files
satok16Android (Google) Code Review
authored andcommitted
Merge "Fix an inconsistent state with IMMS and Settings when the hard keyboard is connected" into jb-mr1.1-dev
2 parents e007c0e + 15451bd commit 2656abe

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2486,10 +2486,8 @@ void buildInputMethodListLocked(ArrayList<InputMethodInfo> list,
24862486
map.put(id, p);
24872487

24882488
// Valid system default IMEs and IMEs that have English subtypes are enabled
2489-
// by default, unless there's a hard keyboard and the system IME was explicitly
2490-
// disabled
2491-
if ((isValidSystemDefaultIme(p, mContext) || isSystemImeThatHasEnglishSubtype(p))
2492-
&& (!haveHardKeyboard || disabledSysImes.indexOf(id) < 0)) {
2489+
// by default
2490+
if ((isValidSystemDefaultIme(p, mContext) || isSystemImeThatHasEnglishSubtype(p))) {
24932491
setInputMethodEnabledLocked(id, true);
24942492
}
24952493

0 commit comments

Comments
 (0)