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

Commit 21871444 authored by Chet Haase's avatar Chet Haase Committed by Android (Google) Code Review
Browse files

Merge "Zero duration animations snap to end value when started" into lmp-mr1-dev

parents 3fbf3b93 5a25e5ba
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -537,8 +537,7 @@ public class ValueAnimator extends Animator {
     * @param playTime The time, in milliseconds, to which the animation is advanced or rewound.
     */
    public void setCurrentPlayTime(long playTime) {
        float fraction = mUnscaledDuration > 0 ? (float) playTime / mUnscaledDuration :
                playTime == 0 ? 0 : 1;
        float fraction = mUnscaledDuration > 0 ? (float) playTime / mUnscaledDuration : 1;
        setCurrentFraction(fraction);
    }