106 lines
2.4 KiB
Smali
106 lines
2.4 KiB
Smali
.class Lcom/moji/lottie/IntegerKeyframeAnimation;
|
|
.super Lcom/moji/lottie/KeyframeAnimation;
|
|
.source "IntegerKeyframeAnimation.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/moji/lottie/KeyframeAnimation<",
|
|
"Ljava/lang/Integer;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Ljava/util/List;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Lcom/moji/lottie/Keyframe<",
|
|
"Ljava/lang/Integer;",
|
|
">;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 10
|
|
invoke-direct {p0, p1}, Lcom/moji/lottie/KeyframeAnimation;-><init>(Ljava/util/List;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method synthetic a(Lcom/moji/lottie/Keyframe;F)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 7
|
|
invoke-virtual {p0, p1, p2}, Lcom/moji/lottie/IntegerKeyframeAnimation;->b(Lcom/moji/lottie/Keyframe;F)Ljava/lang/Integer;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method b(Lcom/moji/lottie/Keyframe;F)Ljava/lang/Integer;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/moji/lottie/Keyframe<",
|
|
"Ljava/lang/Integer;",
|
|
">;F)",
|
|
"Ljava/lang/Integer;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 15
|
|
iget-object v0, p1, Lcom/moji/lottie/Keyframe;->a:Ljava/lang/Object;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p1, Lcom/moji/lottie/Keyframe;->b:Ljava/lang/Object;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 18
|
|
iget-object v0, p1, Lcom/moji/lottie/Keyframe;->a:Ljava/lang/Object;
|
|
|
|
check-cast v0, Ljava/lang/Integer;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v0
|
|
|
|
iget-object p1, p1, Lcom/moji/lottie/Keyframe;->b:Ljava/lang/Object;
|
|
|
|
check-cast p1, Ljava/lang/Integer;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result p1
|
|
|
|
invoke-static {v0, p1, p2}, Lcom/moji/lottie/MiscUtils;->a(IIF)I
|
|
|
|
move-result p1
|
|
|
|
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
.line 16
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
const-string p2, "Missing values for keyframe."
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|