mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-25 08:32:38 -06:00
20 lines
981 B
Java
20 lines
981 B
Java
package com.airbnb.lottie.value;
|
|
|
|
import com.airbnb.lottie.utils.MiscUtils;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class LottieRelativeIntegerValueCallback extends LottieValueCallback<Integer> {
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // com.airbnb.lottie.value.LottieValueCallback
|
|
public Integer getValue(LottieFrameInfo<Integer> lottieFrameInfo) {
|
|
return Integer.valueOf(MiscUtils.lerp(lottieFrameInfo.getStartValue().intValue(), lottieFrameInfo.getEndValue().intValue(), lottieFrameInfo.getInterpolatedKeyframeProgress()) + getOffset(lottieFrameInfo).intValue());
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public Integer getOffset(LottieFrameInfo<Integer> lottieFrameInfo) {
|
|
if (this.value == 0) {
|
|
throw new IllegalArgumentException("You must provide a static value in the constructor , call setValue, or override getValue.");
|
|
}
|
|
return (Integer) this.value;
|
|
}
|
|
}
|