blob: 182dd7972e7063c5731a07e122cbcb03baaef3ab [file] [log] [blame]
package com.airbnb.lottie;
import android.support.annotation.FloatRange;
import android.view.animation.Interpolator;
import java.util.Collections;
class StaticKeyframeAnimation<T> extends KeyframeAnimation<T> {
private final T initialValue;
StaticKeyframeAnimation(T initialValue) {
super(0, null, Collections.<Float>emptyList(), Collections.<Interpolator>emptyList());
this.initialValue = initialValue;
}
@Override public void setProgress(@FloatRange(from = 0f, to = 1f) float progress) {
// Do nothing
}
@Override public T getValue() {
return initialValue;
}
}