Invoke IME switcher for taskbar through SysUI
Bug: 191814219 Test: IME switcher works small and large screen Change-Id: Ic2db60357a13846bb34dddd64b27ecbbf8ff656f
This commit is contained in:
parent
75c97f534b
commit
0ca3f98ec6
|
@ -102,9 +102,7 @@ public class TaskbarNavButtonController {
|
|||
}
|
||||
|
||||
private void showIMESwitcher() {
|
||||
mService.getSystemService(InputMethodManager.class)
|
||||
.showInputMethodPickerFromSystem(true /* showAuxiliarySubtypes */,
|
||||
DEFAULT_DISPLAY);
|
||||
SystemUiProxy.INSTANCE.getNoCreate().onImeSwitcherPressed();
|
||||
}
|
||||
|
||||
private void notifyImeClick(boolean longClick) {
|
||||
|
|
|
@ -116,6 +116,17 @@ public class SystemUiProxy implements ISystemUiProxy,
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onImeSwitcherPressed() {
|
||||
if (mSystemUiProxy != null) {
|
||||
try {
|
||||
mSystemUiProxy.onImeSwitcherPressed();
|
||||
} catch (RemoteException e) {
|
||||
Log.w(TAG, "Failed call onImeSwitcherPressed", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setHomeRotationEnabled(boolean enabled) {
|
||||
if (mSystemUiProxy != null) {
|
||||
|
|
Loading…
Reference in New Issue