Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b4372aad authored by Liran Binyamin's avatar Liran Binyamin Committed by Android Build Coastguard Worker
Browse files

Check that ime visibility changes in stack view

This fixes a minor animation issue when expanding the stack while
the IME is visible.

Flag: EXEMPT bug fix
Bug: 379474417
Test: manual
       - have a floating bubble
       - launch app
       - request IME in the app
       - tap on bubble to expand
       - observe expand animation is smooth
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:9f5d9fc65702ab81f7489911857dc52d14c4f1c2)
Merged-In: I2fd4031004f482af94162ffa0188b527ba874813
Change-Id: I2fd4031004f482af94162ffa0188b527ba874813
parent bd6c787b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -281,6 +281,7 @@ public class BubbleStackView extends FrameLayout
    private int mCornerRadius;
    @Nullable private BubbleViewProvider mExpandedBubble;
    private boolean mIsExpanded;
    private boolean mIsImeVisible = false;

    /** Whether the stack is currently on the left side of the screen, or animating there. */
    private boolean mStackOnLeftOrWillBe = true;
@@ -2888,6 +2889,10 @@ public class BubbleStackView extends FrameLayout
     * and clip the expanded view.
     */
    public void setImeVisible(boolean visible) {
        if (mIsImeVisible == visible) {
            return;
        }
        mIsImeVisible = visible;
        if ((mIsExpansionAnimating || mIsBubbleSwitchAnimating) && mIsExpanded) {
            // This will update the animation so the bubbles move to position for the IME
            mExpandedAnimationController.expandFromStack(() -> {