From e877d5f2a7cabee776ce87a7ca86d4bad808ca62 Mon Sep 17 00:00:00 2001 From: mpodolian Date: Wed, 7 May 2025 12:21:46 -0700 Subject: [PATCH] Hide bubble bar stash handle on the keyboard open. Added SYSUI_STATE_IME_VISIBLE flag to MASK_HIDE_HANDLE_VIEW to hide the bubble bar stash handle view. Also update alpha to 1 for the stash handle view when visibility is updated to VISIBLE. Fixes: 403363673 Flag: com.android.wm.shell.enable_bubble_bar Test: Manual. Have stashed bubble bar and multiple system languages. Go to settings (or ane other apps that has input fields). Click on search to trigger keyboard pop up. Observe that stash handle is hidden. Collapse the keyboard and observe that stash handle is shown again. Change-Id: I5c8518cf02cc784243f9f55a95022279b2608760 --- .../android/launcher3/taskbar/bubbles/BubbleBarController.java | 3 ++- .../taskbar/bubbles/BubbleStashedHandleViewController.java | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarController.java b/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarController.java index b49c9201be..4ded92e5a7 100644 --- a/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarController.java +++ b/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarController.java @@ -98,7 +98,8 @@ public class BubbleBarController extends IBubblesListener.Stub { private static final long MASK_HIDE_HANDLE_VIEW = SYSUI_STATE_BOUNCER_SHOWING | SYSUI_STATE_STATUS_BAR_KEYGUARD_SHOWING - | SYSUI_STATE_STATUS_BAR_KEYGUARD_SHOWING_OCCLUDED; + | SYSUI_STATE_STATUS_BAR_KEYGUARD_SHOWING_OCCLUDED + | SYSUI_STATE_IME_VISIBLE; private static final long MASK_SYSUI_LOCKED = SYSUI_STATE_BOUNCER_SHOWING | SYSUI_STATE_STATUS_BAR_KEYGUARD_SHOWING diff --git a/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleStashedHandleViewController.java b/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleStashedHandleViewController.java index 16e24a18cc..801b064484 100644 --- a/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleStashedHandleViewController.java +++ b/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleStashedHandleViewController.java @@ -226,6 +226,7 @@ public class BubbleStashedHandleViewController { private void updateVisibilityForStateChange() { if (!mHiddenForSysui && !mHiddenForHomeButtonDisabled && !mHiddenForNoBubbles) { mStashedHandleView.setVisibility(VISIBLE); + mStashedHandleView.setAlpha(1); } else { mStashedHandleView.setVisibility(INVISIBLE); mStashedHandleView.setAlpha(0);