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

Commit 9f5d9fc6 authored by Liran Binyamin's avatar Liran Binyamin
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
Change-Id: I2fd4031004f482af94162ffa0188b527ba874813
parent e3873301
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -280,6 +280,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;
@@ -2865,6 +2866,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(() -> {