Display last animated text value
When using animated text, the last value was not shown. Issue can be reproduce with this json:
@@ -11,6 +11,9 @@ public class TextKeyframeAnimation extends KeyframeAnimation<DocumentData> {
}
@Override DocumentData getValue(Keyframe<DocumentData> keyframe, float keyframeProgress) {
+ if (keyframeProgress != 1.0f || keyframe.endValue == null)
return keyframe.startValue;
+ else
+ return keyframe.endValue;
}
}
