Show IME switcher only when physical keyboard is connected in 3 button nav (instead of also when virtual keyboard is visible)

Bug: 226489759
Test: connect to a physical keyboard in 3 button nav and make sure the ime switcher shows; and doesn't show with virtual keyboard
Change-Id: Ib9a5880eb1bd6d5b877a9f3789ce858f399c4910
This commit is contained in:
Tracy Zhou committed 2022-06-24 23:40:41 -07:00
1 parent 804feb76e7
commit 849a0c4e81
3 files changed
+20 -4

No files matched your search

@@ -463,6 +463,8 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
fromInit);
mControllers.taskbarViewController.setImeIsVisible(
mControllers.navbarButtonsViewController.isImeVisible());
mControllers.taskbarViewController.setIsImeSwitcherVisible(
mControllers.navbarButtonsViewController.isImeSwitcherVisible());
int shadeExpandedFlags = SYSUI_STATE_NOTIFICATION_PANEL_EXPANDED
| SYSUI_STATE_QUICK_SETTINGS_EXPANDED;
onNotificationShadeExpandChanged((systemUiStateFlags & shadeExpandedFlags) != 0, fromInit);