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

Commit 5d301a6f authored by Alex Chau's avatar Alex Chau
Browse files

Revert "Set mState = mCurrentStableState in onAnimationCancel()"

This reverts commit 22f8ad0d.

Bug: 228276181
Reason for revert: b/232336303, b/232347110

Change-Id: I8fd27e011328c222f0947553197fcf448150fae0
parent 22f8ad0d
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -19,8 +19,6 @@ package com.android.launcher3.anim;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;

import androidx.annotation.CallSuper;

/**
 * Extension of {@link AnimatorListenerAdapter} for listening for non-cancelled animations
 */
@@ -29,7 +27,6 @@ public abstract class AnimationSuccessListener extends AnimatorListenerAdapter {
    protected boolean mCancelled = false;

    @Override
    @CallSuper
    public void onAnimationCancel(Animator animation) {
        mCancelled = true;
    }
+1 −7
Original line number Diff line number Diff line
@@ -335,13 +335,7 @@ public class StateManager<STATE_TYPE extends BaseState<STATE_TYPE>> {
            @Override
            public void onAnimationStart(Animator animation) {
                // Change the internal state only when the transition actually starts
                onStateTransitionStart(mCancelled ? mCurrentStableState : state);
            }

            @Override
            public void onAnimationCancel(Animator animation) {
                super.onAnimationCancel(animation);
                mState = mCurrentStableState;
                onStateTransitionStart(state);
            }

            @Override