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

Commit 7158d2d0 authored by Jeremy Sim's avatar Jeremy Sim Committed by Android (Google) Code Review
Browse files

Merge "Fix animation canceling crash bug (short swipe during split select)" into udc-dev

parents c110587d 7f169c7c
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -229,8 +229,10 @@ public class StateManager<STATE_TYPE extends BaseState<STATE_TYPE>> {
                    listener.onAnimationEnd(null);
                }
                return;
            } else if (!mConfig.userControlled && animated && mConfig.targetState == state) {
                // We are running the same animation as requested
            } else if ((!mConfig.userControlled && animated && mConfig.targetState == state)
                    || mState.shouldPreserveDataStateOnReapply()) {
                // We are running the same animation as requested, and/or target state should not be
                // reset -- allow the current animation to complete instead of canceling it.
                if (listener != null) {
                    mConfig.currentAnimation.addListener(listener);
                }