From f2c8551644129b0a548a2ac74dc1a69366e52f70 Mon Sep 17 00:00:00 2001 From: Josh Tsuji Date: Fri, 12 Jun 2020 17:01:06 -0400 Subject: [PATCH] Hide IME on touching down on a Bubble. This fixes the issue where the dragged-out bubble and the dismiss target rendered under the IME. It also improves animations all-around since it starts the IME animation earlier (vs waiting for ACTION_UP). While the IME does hide earlier, once your finger is on a Bubble, there is nothing you can do that would not hide the IME anyway - dragging it out hides it, and if you lift your finger, you'll either switch bubbles or collapse the stack, both of which hide the IME. Test: have IME, drag out bubble Fixes: 158861545 Change-Id: I903897eca3c516bc953cbd70ab2102bbc4a81a4f --- .../src/com/android/systemui/bubbles/BubbleStackView.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java index 015079ff900a5..d744435ddff5b 100644 --- a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java +++ b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java @@ -534,6 +534,8 @@ public class BubbleStackView extends FrameLayout mMagneticTarget, mIndividualBubbleMagnetListener); + hideImeFromExpandedBubble(); + // Save the magnetized individual bubble so we can dispatch touch events to it. mMagnetizedObject = mExpandedAnimationController.getMagnetizedBubbleDraggingOut(); } else {