diff options
| author | 2019-08-21 17:28:49 -0700 | |
|---|---|---|
| committer | 2019-08-21 17:28:49 -0700 | |
| commit | df611cf1151a1b3235d38149c5e711fe2f63bab9 (patch) | |
| tree | f15a28b215dd9136a9bf794d2049f3310731e688 | |
| parent | c76d88b1bc0184c8b07e9e413b73cbf7ef9af01d (diff) | |
Make sure the ime height is set to 0 when the ime disappears
Previously we were setting the offset always which means the bubble
position wasn't quite where it should be.
Test: manual - have stack of bubbles, note how far to bottom of screen
the stack can be placed
- expand them
- focus the keyboard
- collapse the stack
=> note how far to bottom of screen the stack can be placed,
should be same as step 1
Change-Id: I0e3d788a2edcd42b56ce8ee4e350be3ddf89183e
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java index e7be07c44ff6..c091827090a9 100644 --- a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java +++ b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java @@ -991,7 +991,7 @@ public class BubbleStackView extends FrameLayout { /** Moves the bubbles out of the way if they're going to be over the keyboard. */ public void onImeVisibilityChanged(boolean visible, int height) { - mStackAnimationController.setImeHeight(height + mImeOffset); + mStackAnimationController.setImeHeight(visible ? height + mImeOffset : 0); if (!mIsExpanded) { mStackAnimationController.animateForImeVisibility(visible); |