Skip to content

Commit

Permalink
revert code BaseKeyframeAnimation
Browse files Browse the repository at this point in the history
  • Loading branch information
uni-cstar committed Apr 13, 2024
1 parent 6fc87cc commit 0360e57
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ protected float getInterpolatedCurrentKeyframeProgress() {
Keyframe<K> keyframe = getCurrentKeyframe();
// Keyframe should not be null here but there seems to be a Xiaomi Android 10 specific crash.
// https://github.com/airbnb/lottie-android/issues/2050
if (keyframe == null || keyframe.isStatic()) {
// https://github.com/airbnb/lottie-android/issues/2483
if (keyframe == null || keyframe.isStatic() || keyframe.interpolator == null) {
return 0f;
}
//noinspection ConstantConditions
Expand Down

0 comments on commit 0360e57

Please sign in to comment.