Merge "Invoke IME switcher for taskbar through SysUI" into sc-v2-dev am: 04d52b48ac

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16149981

Change-Id: I8e46d5d41e950a9b913f9f6060aaa08bb11629c1
This commit is contained in:
Vinit Nayak
2021-11-04 20:59:25 +00:00
committed by Automerger Merge Worker
2 changed files with 12 additions and 3 deletions
@@ -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) {
@@ -117,6 +117,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) {