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

Commit 5441cce8 authored by Jon Miranda's avatar Jon Miranda Committed by Jon @
Browse files

Ensures that we end back to home animation on the last animation frame.

This fixes the bug where user performs double swipe back to home and we
have a floating window on the screen.

Fixes: 277515917
Test: From an app, back swipe to home, and then immediately back swipe
      to home again
Flag: NONE
Change-Id: If312ee55efeaadde896511c6d449826368b15a84
parent 6a8a4ba0
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -281,7 +281,15 @@ public class RectFSpringAnim extends ReleaseCheck {
            if (mRectScaleAnim.canSkipToEnd()) {
                mRectScaleAnim.skipToEnd();
            }
            mCurrentScaleProgress = mRectScaleAnim.getSpring().getFinalPosition();

            // Ensures that we end the animation with the final values.
            mRectXAnimEnded = false;
            mRectYAnimEnded = false;
            mRectScaleAnimEnded = false;
            onUpdate();
        }

        mRectXAnimEnded = true;
        mRectYAnimEnded = true;
        mRectScaleAnimEnded = true;