am 8394e9ff: am 21871444: Merge "Zero duration animations snap to end value when started" into lmp-mr1-dev
* commit '8394e9fff32c8935e021f0e4e84c5c1de913b96f': Zero duration animations snap to end value when started
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user