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

Commit 8394e9ff authored by Chet Haase's avatar Chet Haase Committed by Android Git Automerger
Browse files

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

* commit '21871444':
  Zero duration animations snap to end value when started
parents 9e863741 21871444
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);
    }