If bubble bar is collapsing, hide the IME
We do this in stackview, should also do it for layerview.
Flag: com.android.wm.shell.enable_bubble_bar
Test: manual - expand a bubble, show the IME, lock the device, unlock
the device
=> observe that the IME is not still on screen
Fixes: 353899205
Change-Id: Ie3bf633e8f2428a509110bb2ea073eaffbaa7094
diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleController.java b/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleController.java
index af4a0c5..03b7c8b 100644
--- a/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleController.java
+++ b/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleController.java
@@ -2001,6 +2001,10 @@
// in bubble bar mode, let the request to show the expanded view come from launcher.
// only collapse here if we're collapsing.
if (mLayerView != null && !isExpanded) {
+ if (mBubblePositioner.isImeVisible()) {
+ // If we're collapsing, hide the IME
+ hideCurrentInputMethod();
+ }
mLayerView.collapse();
}
}