h.smali
.class final Lcom/opensource/svgaplayer/h;
.super Ljava/lang/Object;
.source "SVGAImageView.kt"
# interfaces
.implements Landroid/animation/ValueAnimator$AnimatorUpdateListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/opensource/svgaplayer/SVGAImageView;->startAnimation(Lcom/opensource/svgaplayer/b/b;Z)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = null
.end annotation
# instance fields
.field final synthetic a:Landroid/animation/ValueAnimator;
.field final synthetic b:Lcom/opensource/svgaplayer/SVGAImageView;
.field final synthetic c:Lcom/opensource/svgaplayer/b/b;
.field final synthetic d:Lcom/opensource/svgaplayer/c;
.field final synthetic e:Z
# direct methods
.method constructor <init>(Landroid/animation/ValueAnimator;Lcom/opensource/svgaplayer/SVGAImageView;Lcom/opensource/svgaplayer/b/b;Lcom/opensource/svgaplayer/c;Z)V
.registers 6
iput-object p1, p0, Lcom/opensource/svgaplayer/h;->a:Landroid/animation/ValueAnimator;
iput-object p2, p0, Lcom/opensource/svgaplayer/h;->b:Lcom/opensource/svgaplayer/SVGAImageView;
iput-object p3, p0, Lcom/opensource/svgaplayer/h;->c:Lcom/opensource/svgaplayer/b/b;
iput-object p4, p0, Lcom/opensource/svgaplayer/h;->d:Lcom/opensource/svgaplayer/c;
iput-boolean p5, p0, Lcom/opensource/svgaplayer/h;->e:Z
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final onAnimationUpdate(Landroid/animation/ValueAnimator;)V
.registers 7
.line 1
iget-object p1, p0, Lcom/opensource/svgaplayer/h;->d:Lcom/opensource/svgaplayer/c;
iget-object v0, p0, Lcom/opensource/svgaplayer/h;->a:Landroid/animation/ValueAnimator;
const-string v1, "animator"
invoke-static {v0, v1}, Lkotlin/jvm/internal/i;->a(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Landroid/animation/ValueAnimator;->getAnimatedValue()Ljava/lang/Object;
move-result-object v0
if-eqz v0, :cond_45
check-cast v0, Ljava/lang/Integer;
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
move-result v0
invoke-virtual {p1, v0}, Lcom/opensource/svgaplayer/c;->a(I)V
.line 2
iget-object p1, p0, Lcom/opensource/svgaplayer/h;->b:Lcom/opensource/svgaplayer/SVGAImageView;
invoke-virtual {p1}, Lcom/opensource/svgaplayer/SVGAImageView;->getCallback()Lcom/opensource/svgaplayer/b;
move-result-object p1
if-eqz p1, :cond_44
iget-object v0, p0, Lcom/opensource/svgaplayer/h;->d:Lcom/opensource/svgaplayer/c;
invoke-virtual {v0}, Lcom/opensource/svgaplayer/c;->a()I
move-result v0
iget-object v1, p0, Lcom/opensource/svgaplayer/h;->d:Lcom/opensource/svgaplayer/c;
invoke-virtual {v1}, Lcom/opensource/svgaplayer/c;->a()I
move-result v1
add-int/lit8 v1, v1, 0x1
int-to-double v1, v1
iget-object v3, p0, Lcom/opensource/svgaplayer/h;->d:Lcom/opensource/svgaplayer/c;
invoke-virtual {v3}, Lcom/opensource/svgaplayer/c;->c()Lcom/opensource/svgaplayer/q;
move-result-object v3
invoke-virtual {v3}, Lcom/opensource/svgaplayer/q;->d()I
move-result v3
int-to-double v3, v3
invoke-static {v1, v2}, Ljava/lang/Double;->isNaN(D)Z
invoke-static {v3, v4}, Ljava/lang/Double;->isNaN(D)Z
div-double/2addr v1, v3
invoke-interface {p1, v0, v1, v2}, Lcom/opensource/svgaplayer/b;->a(ID)V
:cond_44
return-void
.line 3
:cond_45
new-instance p1, Lkotlin/TypeCastException;
const-string v0, "null cannot be cast to non-null type kotlin.Int"
invoke-direct {p1, v0}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
throw p1
.end method