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

Commit dd67b0d5 authored by Doris Liu's avatar Doris Liu Committed by Android (Google) Code Review
Browse files

Merge "Fix pause/resume for AnimatorSet" into nyc-dev

parents 967d9344 2987dffb
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -559,7 +559,8 @@ public final class AnimatorSet extends Animator {
        boolean previouslyPaused = mPaused;
        super.pause();
        if (!previouslyPaused && mPaused) {
            if (mDelayAnim != null) {
            if (mDelayAnim.isStarted()) {
                // If delay hasn't passed, pause the start delay animator.
                mDelayAnim.pause();
            } else {
                int size = mNodes.size();
@@ -578,7 +579,8 @@ public final class AnimatorSet extends Animator {
        boolean previouslyPaused = mPaused;
        super.resume();
        if (previouslyPaused && !mPaused) {
            if (mDelayAnim != null) {
            if (mDelayAnim.isStarted()) {
                // If start delay hasn't passed, resume the previously paused start delay animator
                mDelayAnim.resume();
            } else {
                int size = mNodes.size();