Skip to content

Commit 15451bd

Browse files
committed
Fix an inconsistent state with IMMS and Settings when the hard keyboard is connected
Bug: 7540140 Change-Id: Iaac951ff457c35751b442e84ac07f1f86be93494
1 parent e3ac532 commit 15451bd

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)