discord-jadx/app/src/main/java/c/c/a/w/c/b.java

31 lines
1.0 KiB
Java

package c.c.a.w.c;
import c.c.a.b0.f;
import c.c.a.c0.a;
import c.c.a.c0.c;
import com.airbnb.lottie.parser.AnimatableValueParser;
import java.util.List;
/* compiled from: ColorKeyframeAnimation */
public class b extends f<Integer> {
public b(List<a<Integer>> list) {
super(list);
}
@Override // c.c.a.w.c.a
public Object f(a aVar, float f) {
return Integer.valueOf(j(aVar, f));
}
public int j(a<Integer> aVar, float f) {
Integer num;
Integer num2 = aVar.b;
if (num2 == null || aVar.f269c == null) {
throw new IllegalStateException("Missing values for keyframe.");
}
int intValue = num2.intValue();
int intValue2 = aVar.f269c.intValue();
c<A> cVar = this.e;
return (cVar == 0 || (num = (Integer) cVar.a(aVar.e, aVar.f.floatValue(), Integer.valueOf(intValue), Integer.valueOf(intValue2), f, d(), this.d)) == null) ? AnimatableValueParser.k0(f.b(f, 0.0f, 1.0f), intValue, intValue2) : num.intValue();
}
}