Skip to content

Commit 9747f89

Browse files
committed
Fix the visiblity of the ime switcher icon.
Bug: 5288866 Change-Id: I99b4aee36c337b2fab1116e9245ddecd826c840c
1 parent f4b783f commit 9747f89

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/SystemUI/src/com/android/systemui/statusbar/tablet/InputMethodButton.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ private boolean needsToShowIMEButtonWhenVisibilityAuto() {
102102
return true;
103103
} else if (nonAuxCount == 1 && auxCount == 1) {
104104
if (nonAuxSubtype != null && auxSubtype != null
105-
&& nonAuxSubtype.getLocale().equals(auxSubtype.getLocale())
105+
&& (nonAuxSubtype.getLocale().equals(auxSubtype.getLocale())
106+
|| auxSubtype.overridesImplicitlyEnabledSubtype()
107+
|| nonAuxSubtype.overridesImplicitlyEnabledSubtype())
106108
&& nonAuxSubtype.containsExtraValueKey(TAG_TRY_SUPPRESSING_IME_SWITCHER)) {
107109
return false;
108110
}

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,9 @@ private boolean needsToShowImeSwitchOngoingNotification() {
11151115
return true;
11161116
} else if (nonAuxCount == 1 && auxCount == 1) {
11171117
if (nonAuxSubtype != null && auxSubtype != null
1118-
&& nonAuxSubtype.getLocale().equals(auxSubtype.getLocale())
1118+
&& (nonAuxSubtype.getLocale().equals(auxSubtype.getLocale())
1119+
|| auxSubtype.overridesImplicitlyEnabledSubtype()
1120+
|| nonAuxSubtype.overridesImplicitlyEnabledSubtype())
11191121
&& nonAuxSubtype.containsExtraValueKey(TAG_TRY_SUPPRESSING_IME_SWITCHER)) {
11201122
return false;
11211123
}

0 commit comments

Comments
 (0)