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

Commit c0b06038 authored by Doris Liu's avatar Doris Liu Committed by android-build-merger
Browse files

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

am: 66905044

* commit '66905044':
  Fix pause/resume for AnimatorSet

Change-Id: Iaf22255fc1856e65bb5226370a255d7a796153a2
parents 038577d5 66905044
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();