commit | 0ca3f98ec6bf3aef3943ac6ae066ba07ee639272 | [log] [tgz] |
---|---|---|
author | Vinit Nayak <peanutbutter@google.com> | Fri Oct 29 11:46:18 2021 -0700 |
committer | Vinit Nayak <peanutbutter@google.com> | Fri Oct 29 11:46:18 2021 -0700 |
tree | 7878a73ba6c80a639139c28b79e0aaa30b76f648 | |
parent | 75c97f534bb340b625ea655c207b952a5a406c0e [diff] |
Invoke IME switcher for taskbar through SysUI Bug: 191814219 Test: IME switcher works small and large screen Change-Id: Ic2db60357a13846bb34dddd64b27ecbbf8ff656f
diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarNavButtonController.java b/quickstep/src/com/android/launcher3/taskbar/TaskbarNavButtonController.java index 6fbef9b..a8a0b59 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarNavButtonController.java +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarNavButtonController.java
@@ -102,9 +102,7 @@ } private void showIMESwitcher() { - mService.getSystemService(InputMethodManager.class) - .showInputMethodPickerFromSystem(true /* showAuxiliarySubtypes */, - DEFAULT_DISPLAY); + SystemUiProxy.INSTANCE.getNoCreate().onImeSwitcherPressed(); } private void notifyImeClick(boolean longClick) {
diff --git a/quickstep/src/com/android/quickstep/SystemUiProxy.java b/quickstep/src/com/android/quickstep/SystemUiProxy.java index d9319a9..9fc557d 100644 --- a/quickstep/src/com/android/quickstep/SystemUiProxy.java +++ b/quickstep/src/com/android/quickstep/SystemUiProxy.java
@@ -117,6 +117,17 @@ } @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) { try {