Remove redundant references to IME Switcher vis
The taskbar and bubble bar were using both the visibility of the IME and that of the IME Switcher button to determine whether these bars should be stashed. However, the IME Switcher button will never be visible while the IME is not visible, so using its visibility is redundant. This changes the stashing logic to only take into account the IME visibility. Note, the IME is also considered visible even when a hardware keyboard is connected, regardless of any UI being visible or not. This visibility state determines various system behaviours. Flag: EXEMPT refactor Bug: 366129400 Test: open the IME and IME Switcher menu on large screen devices; observe taskbar behaviour Change-Id: Ibcd16896582ca575538d8c1c3d2ab879090d075c
This commit is contained in:
@@ -20,7 +20,6 @@ import static android.os.Process.THREAD_PRIORITY_BACKGROUND;
|
||||
import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
|
||||
import static com.android.systemui.shared.system.QuickStepContract.SYSUI_STATE_BOUNCER_SHOWING;
|
||||
import static com.android.systemui.shared.system.QuickStepContract.SYSUI_STATE_IME_SHOWING;
|
||||
import static com.android.systemui.shared.system.QuickStepContract.SYSUI_STATE_IME_SWITCHER_BUTTON_SHOWING;
|
||||
import static com.android.systemui.shared.system.QuickStepContract.SYSUI_STATE_NOTIFICATION_PANEL_EXPANDED;
|
||||
import static com.android.systemui.shared.system.QuickStepContract.SYSUI_STATE_QUICK_SETTINGS_EXPANDED;
|
||||
import static com.android.systemui.shared.system.QuickStepContract.SYSUI_STATE_STATUS_BAR_KEYGUARD_SHOWING;
|
||||
@@ -94,8 +93,7 @@ public class BubbleBarController extends IBubblesListener.Stub {
|
||||
| SYSUI_STATE_STATUS_BAR_KEYGUARD_SHOWING_OCCLUDED
|
||||
| SYSUI_STATE_IME_SHOWING
|
||||
| SYSUI_STATE_NOTIFICATION_PANEL_EXPANDED
|
||||
| SYSUI_STATE_QUICK_SETTINGS_EXPANDED
|
||||
| SYSUI_STATE_IME_SWITCHER_BUTTON_SHOWING;
|
||||
| SYSUI_STATE_QUICK_SETTINGS_EXPANDED;
|
||||
|
||||
private static final long MASK_HIDE_HANDLE_VIEW = SYSUI_STATE_BOUNCER_SHOWING
|
||||
| SYSUI_STATE_STATUS_BAR_KEYGUARD_SHOWING
|
||||
|
||||
Reference in New Issue
Block a user