blob: 0c09f94a5027d4ba1d6edbdcde7e79e99c457213 [file] [log] [blame]
package com.airbnb.lottie.animation.keyframe;
import com.airbnb.lottie.value.Keyframe;
import com.airbnb.lottie.model.DocumentData;
import java.util.List;
public class TextKeyframeAnimation extends KeyframeAnimation<DocumentData> {
public TextKeyframeAnimation(List<Keyframe<DocumentData>> keyframes) {
super(keyframes);
}
@Override DocumentData getValue(Keyframe<DocumentData> keyframe, float keyframeProgress) {
if (keyframeProgress != 1.0f || keyframe.endValue == null)
return keyframe.startValue;
else
return keyframe.endValue;
}
}