apkfuckery/com.discord/smali/com/airbnb/lottie/LottieAnimationView.smali
2020-09-16 23:45:23 +00:00

2127 lines
50 KiB
Smali

.class public Lcom/airbnb/lottie/LottieAnimationView;
.super Landroidx/appcompat/widget/AppCompatImageView;
.source "LottieAnimationView.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/airbnb/lottie/LottieAnimationView$SavedState;
}
.end annotation
# static fields
.field public static final v:Ljava/lang/String;
.field public static final w:Lf/d/a/j;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lf/d/a/j<",
"Ljava/lang/Throwable;",
">;"
}
.end annotation
.end field
# instance fields
.field public final d:Lf/d/a/j;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lf/d/a/j<",
"Lf/d/a/d;",
">;"
}
.end annotation
.end field
.field public final e:Lf/d/a/j;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lf/d/a/j<",
"Ljava/lang/Throwable;",
">;"
}
.end annotation
.end field
.field public f:Lf/d/a/j;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lf/d/a/j<",
"Ljava/lang/Throwable;",
">;"
}
.end annotation
.end field
.field public g:I
.annotation build Landroidx/annotation/DrawableRes;
.end annotation
.end field
.field public final h:Lf/d/a/h;
.field public i:Z
.field public j:Ljava/lang/String;
.field public k:I
.annotation build Landroidx/annotation/RawRes;
.end annotation
.end field
.field public l:Z
.field public m:Z
.field public n:Z
.field public o:Z
.field public p:Z
.field public q:Lf/d/a/r;
.field public r:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Lf/d/a/l;",
">;"
}
.end annotation
.end field
.field public s:I
.field public t:Lf/d/a/p;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lf/d/a/p<",
"Lf/d/a/d;",
">;"
}
.end annotation
.end field
.field public u:Lf/d/a/d;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
# direct methods
.method public static constructor <clinit>()V
.locals 1
const-class v0, Lcom/airbnb/lottie/LottieAnimationView;
invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/airbnb/lottie/LottieAnimationView;->v:Ljava/lang/String;
new-instance v0, Lcom/airbnb/lottie/LottieAnimationView$a;
invoke-direct {v0}, Lcom/airbnb/lottie/LottieAnimationView$a;-><init>()V
sput-object v0, Lcom/airbnb/lottie/LottieAnimationView;->w:Lf/d/a/j;
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.locals 8
invoke-direct {p0, p1, p2}, Landroidx/appcompat/widget/AppCompatImageView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
new-instance p1, Lcom/airbnb/lottie/LottieAnimationView$b;
invoke-direct {p1, p0}, Lcom/airbnb/lottie/LottieAnimationView$b;-><init>(Lcom/airbnb/lottie/LottieAnimationView;)V
iput-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->d:Lf/d/a/j;
new-instance p1, Lcom/airbnb/lottie/LottieAnimationView$c;
invoke-direct {p1, p0}, Lcom/airbnb/lottie/LottieAnimationView$c;-><init>(Lcom/airbnb/lottie/LottieAnimationView;)V
iput-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->e:Lf/d/a/j;
const/4 p1, 0x0
iput p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->g:I
new-instance v0, Lf/d/a/h;
invoke-direct {v0}, Lf/d/a/h;-><init>()V
iput-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
iput-boolean p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->l:Z
iput-boolean p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->m:Z
iput-boolean p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->n:Z
iput-boolean p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->o:Z
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->p:Z
sget-object v1, Lf/d/a/r;->d:Lf/d/a/r;
iput-object v1, p0, Lcom/airbnb/lottie/LottieAnimationView;->q:Lf/d/a/r;
new-instance v1, Ljava/util/HashSet;
invoke-direct {v1}, Ljava/util/HashSet;-><init>()V
iput-object v1, p0, Lcom/airbnb/lottie/LottieAnimationView;->r:Ljava/util/Set;
iput p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->s:I
sget v1, Lcom/airbnb/lottie/R$a;->lottieAnimationViewStyle:I
invoke-virtual {p0}, Landroid/widget/ImageView;->getContext()Landroid/content/Context;
move-result-object v2
sget-object v3, Lcom/airbnb/lottie/R$b;->LottieAnimationView:[I
invoke-virtual {v2, p2, v3, v1, p1}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
move-result-object p2
invoke-virtual {p0}, Landroid/widget/ImageView;->isInEditMode()Z
move-result v1
if-nez v1, :cond_5
sget v1, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_cacheComposition:I
invoke-virtual {p2, v1, v0}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v1
iput-boolean v1, p0, Lcom/airbnb/lottie/LottieAnimationView;->p:Z
sget v1, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_rawRes:I
invoke-virtual {p2, v1}, Landroid/content/res/TypedArray;->hasValue(I)Z
move-result v1
sget v2, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_fileName:I
invoke-virtual {p2, v2}, Landroid/content/res/TypedArray;->hasValue(I)Z
move-result v2
sget v3, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_url:I
invoke-virtual {p2, v3}, Landroid/content/res/TypedArray;->hasValue(I)Z
move-result v3
if-eqz v1, :cond_1
if-nez v2, :cond_0
goto :goto_0
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string p2, "lottie_rawRes and lottie_fileName cannot be used at the same time. Please use only one at once."
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
:goto_0
if-eqz v1, :cond_2
sget v1, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_rawRes:I
invoke-virtual {p2, v1, p1}, Landroid/content/res/TypedArray;->getResourceId(II)I
move-result v1
if-eqz v1, :cond_4
invoke-virtual {p0, v1}, Lcom/airbnb/lottie/LottieAnimationView;->setAnimation(I)V
goto :goto_1
:cond_2
if-eqz v2, :cond_3
sget v1, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_fileName:I
invoke-virtual {p2, v1}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
move-result-object v1
if-eqz v1, :cond_4
invoke-virtual {p0, v1}, Lcom/airbnb/lottie/LottieAnimationView;->setAnimation(Ljava/lang/String;)V
goto :goto_1
:cond_3
if-eqz v3, :cond_4
sget v1, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_url:I
invoke-virtual {p2, v1}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
move-result-object v1
if-eqz v1, :cond_4
invoke-virtual {p0, v1}, Lcom/airbnb/lottie/LottieAnimationView;->setAnimationFromUrl(Ljava/lang/String;)V
:cond_4
:goto_1
sget v1, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_fallbackRes:I
invoke-virtual {p2, v1, p1}, Landroid/content/res/TypedArray;->getResourceId(II)I
move-result v1
invoke-virtual {p0, v1}, Lcom/airbnb/lottie/LottieAnimationView;->setFallbackResource(I)V
:cond_5
sget v1, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_autoPlay:I
invoke-virtual {p2, v1, p1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v1
if-eqz v1, :cond_6
iput-boolean v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->n:Z
iput-boolean v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->o:Z
:cond_6
sget v1, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_loop:I
invoke-virtual {p2, v1, p1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v1
const/4 v2, -0x1
if-eqz v1, :cond_7
iget-object v1, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
iget-object v1, v1, Lf/d/a/h;->f:Lf/d/a/z/d;
invoke-virtual {v1, v2}, Landroid/animation/ValueAnimator;->setRepeatCount(I)V
:cond_7
sget v1, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_repeatMode:I
invoke-virtual {p2, v1}, Landroid/content/res/TypedArray;->hasValue(I)Z
move-result v1
if-eqz v1, :cond_8
sget v1, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_repeatMode:I
invoke-virtual {p2, v1, v0}, Landroid/content/res/TypedArray;->getInt(II)I
move-result v1
invoke-virtual {p0, v1}, Lcom/airbnb/lottie/LottieAnimationView;->setRepeatMode(I)V
:cond_8
sget v1, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_repeatCount:I
invoke-virtual {p2, v1}, Landroid/content/res/TypedArray;->hasValue(I)Z
move-result v1
if-eqz v1, :cond_9
sget v1, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_repeatCount:I
invoke-virtual {p2, v1, v2}, Landroid/content/res/TypedArray;->getInt(II)I
move-result v1
invoke-virtual {p0, v1}, Lcom/airbnb/lottie/LottieAnimationView;->setRepeatCount(I)V
:cond_9
sget v1, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_speed:I
invoke-virtual {p2, v1}, Landroid/content/res/TypedArray;->hasValue(I)Z
move-result v1
const/high16 v2, 0x3f800000 # 1.0f
if-eqz v1, :cond_a
sget v1, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_speed:I
invoke-virtual {p2, v1, v2}, Landroid/content/res/TypedArray;->getFloat(IF)F
move-result v1
invoke-virtual {p0, v1}, Lcom/airbnb/lottie/LottieAnimationView;->setSpeed(F)V
:cond_a
sget v1, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_imageAssetsFolder:I
invoke-virtual {p2, v1}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {p0, v1}, Lcom/airbnb/lottie/LottieAnimationView;->setImageAssetsFolder(Ljava/lang/String;)V
sget v1, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_progress:I
const/4 v3, 0x0
invoke-virtual {p2, v1, v3}, Landroid/content/res/TypedArray;->getFloat(IF)F
move-result v1
invoke-virtual {p0, v1}, Lcom/airbnb/lottie/LottieAnimationView;->setProgress(F)V
sget v1, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_enableMergePathsForKitKatAndAbove:I
invoke-virtual {p2, v1, p1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v1
iget-object v4, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
iget-boolean v5, v4, Lf/d/a/h;->q:Z
if-ne v5, v1, :cond_b
goto :goto_2
:cond_b
iput-boolean v1, v4, Lf/d/a/h;->q:Z
iget-object v1, v4, Lf/d/a/h;->e:Lf/d/a/d;
if-eqz v1, :cond_c
new-instance v5, Lf/d/a/w/l/c;
invoke-static {v1}, Lf/d/a/y/r;->a(Lf/d/a/d;)Lf/d/a/w/l/e;
move-result-object v1
iget-object v6, v4, Lf/d/a/h;->e:Lf/d/a/d;
iget-object v7, v6, Lf/d/a/d;->i:Ljava/util/List;
invoke-direct {v5, v4, v1, v7, v6}, Lf/d/a/w/l/c;-><init>(Lf/d/a/h;Lf/d/a/w/l/e;Ljava/util/List;Lf/d/a/d;)V
iput-object v5, v4, Lf/d/a/h;->r:Lf/d/a/w/l/c;
:cond_c
:goto_2
sget v1, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_colorFilter:I
invoke-virtual {p2, v1}, Landroid/content/res/TypedArray;->hasValue(I)Z
move-result v1
if-eqz v1, :cond_d
new-instance v1, Lf/d/a/s;
sget v4, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_colorFilter:I
invoke-virtual {p2, v4, p1}, Landroid/content/res/TypedArray;->getColor(II)I
move-result v4
invoke-direct {v1, v4}, Lf/d/a/s;-><init>(I)V
new-instance v4, Lf/d/a/w/e;
const-string v5, "**"
filled-new-array {v5}, [Ljava/lang/String;
move-result-object v5
invoke-direct {v4, v5}, Lf/d/a/w/e;-><init>([Ljava/lang/String;)V
new-instance v5, Lf/d/a/a0/c;
invoke-direct {v5, v1}, Lf/d/a/a0/c;-><init>(Ljava/lang/Object;)V
sget-object v1, Lf/d/a/m;->C:Landroid/graphics/ColorFilter;
iget-object v6, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
invoke-virtual {v6, v4, v1, v5}, Lf/d/a/h;->a(Lf/d/a/w/e;Ljava/lang/Object;Lf/d/a/a0/c;)V
:cond_d
sget v1, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_scale:I
invoke-virtual {p2, v1}, Landroid/content/res/TypedArray;->hasValue(I)Z
move-result v1
if-eqz v1, :cond_e
iget-object v1, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
sget v4, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_scale:I
invoke-virtual {p2, v4, v2}, Landroid/content/res/TypedArray;->getFloat(IF)F
move-result v2
iput v2, v1, Lf/d/a/h;->g:F
invoke-virtual {v1}, Lf/d/a/h;->u()V
:cond_e
sget v1, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_renderMode:I
invoke-virtual {p2, v1}, Landroid/content/res/TypedArray;->hasValue(I)Z
move-result v1
if-eqz v1, :cond_10
sget v1, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_renderMode:I
invoke-virtual {p2, v1, p1}, Landroid/content/res/TypedArray;->getInt(II)I
move-result v1
invoke-static {}, Lf/d/a/r;->values()[Lf/d/a/r;
move-result-object v2
array-length v2, v2
if-lt v1, v2, :cond_f
const/4 v1, 0x0
:cond_f
invoke-static {}, Lf/d/a/r;->values()[Lf/d/a/r;
move-result-object v2
aget-object v1, v2, v1
invoke-virtual {p0, v1}, Lcom/airbnb/lottie/LottieAnimationView;->setRenderMode(Lf/d/a/r;)V
:cond_10
invoke-virtual {p0}, Landroid/widget/ImageView;->getScaleType()Landroid/widget/ImageView$ScaleType;
move-result-object v1
if-eqz v1, :cond_11
iget-object v1, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
invoke-virtual {p0}, Landroid/widget/ImageView;->getScaleType()Landroid/widget/ImageView$ScaleType;
move-result-object v2
iput-object v2, v1, Lf/d/a/h;->l:Landroid/widget/ImageView$ScaleType;
:cond_11
invoke-virtual {p2}, Landroid/content/res/TypedArray;->recycle()V
iget-object p2, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
invoke-virtual {p0}, Landroid/widget/ImageView;->getContext()Landroid/content/Context;
move-result-object v1
invoke-static {v1}, Lf/d/a/z/g;->f(Landroid/content/Context;)F
move-result v1
cmpl-float v1, v1, v3
if-eqz v1, :cond_12
const/4 p1, 0x1
:cond_12
invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object p1
if-eqz p2, :cond_13
invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z
move-result p1
iput-boolean p1, p2, Lf/d/a/h;->h:Z
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieAnimationView;->b()V
iput-boolean v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->i:Z
return-void
:cond_13
const/4 p1, 0x0
throw p1
.end method
.method private setCompositionTask(Lf/d/a/p;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lf/d/a/p<",
"Lf/d/a/d;",
">;)V"
}
.end annotation
const/4 v0, 0x0
iput-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->u:Lf/d/a/d;
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
invoke-virtual {v0}, Lf/d/a/h;->b()V
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieAnimationView;->a()V
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->d:Lf/d/a/j;
invoke-virtual {p1, v0}, Lf/d/a/p;->b(Lf/d/a/j;)Lf/d/a/p;
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->e:Lf/d/a/j;
invoke-virtual {p1, v0}, Lf/d/a/p;->a(Lf/d/a/j;)Lf/d/a/p;
iput-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->t:Lf/d/a/p;
return-void
.end method
# virtual methods
.method public final a()V
.locals 3
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->t:Lf/d/a/p;
if-eqz v0, :cond_0
iget-object v1, p0, Lcom/airbnb/lottie/LottieAnimationView;->d:Lf/d/a/j;
monitor-enter v0
:try_start_0
iget-object v2, v0, Lf/d/a/p;->a:Ljava/util/Set;
invoke-interface {v2, v1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
monitor-exit v0
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->t:Lf/d/a/p;
iget-object v1, p0, Lcom/airbnb/lottie/LottieAnimationView;->e:Lf/d/a/j;
monitor-enter v0
:try_start_1
iget-object v2, v0, Lf/d/a/p;->b:Ljava/util/Set;
invoke-interface {v2, v1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
monitor-exit v0
goto :goto_0
:catchall_0
move-exception v1
monitor-exit v0
throw v1
:catchall_1
move-exception v1
monitor-exit v0
throw v1
:cond_0
:goto_0
return-void
.end method
.method public final b()V
.locals 5
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->q:Lf/d/a/r;
invoke-virtual {v0}, Ljava/lang/Enum;->ordinal()I
move-result v0
const/4 v1, 0x2
const/4 v2, 0x1
if-eqz v0, :cond_1
if-eq v0, v2, :cond_4
:cond_0
const/4 v1, 0x1
goto :goto_1
:cond_1
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->u:Lf/d/a/d;
const/4 v3, 0x0
if-eqz v0, :cond_2
iget-boolean v0, v0, Lf/d/a/d;->n:Z
if-eqz v0, :cond_2
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v4, 0x1c
if-ge v0, v4, :cond_2
goto :goto_0
:cond_2
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->u:Lf/d/a/d;
if-eqz v0, :cond_3
iget v0, v0, Lf/d/a/d;->o:I
const/4 v4, 0x4
if-le v0, v4, :cond_3
goto :goto_0
:cond_3
const/4 v3, 0x1
:goto_0
if-eqz v3, :cond_0
:cond_4
:goto_1
invoke-virtual {p0}, Landroid/widget/ImageView;->getLayerType()I
move-result v0
if-eq v1, v0, :cond_5
const/4 v0, 0x0
invoke-virtual {p0, v1, v0}, Landroid/widget/ImageView;->setLayerType(ILandroid/graphics/Paint;)V
:cond_5
return-void
.end method
.method public buildDrawingCache(Z)V
.locals 2
iget v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->s:I
const/4 v1, 0x1
add-int/2addr v0, v1
iput v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->s:I
invoke-super {p0, p1}, Landroid/widget/ImageView;->buildDrawingCache(Z)V
iget v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->s:I
if-ne v0, v1, :cond_0
invoke-virtual {p0}, Landroid/widget/ImageView;->getWidth()I
move-result v0
if-lez v0, :cond_0
invoke-virtual {p0}, Landroid/widget/ImageView;->getHeight()I
move-result v0
if-lez v0, :cond_0
invoke-virtual {p0}, Landroid/widget/ImageView;->getLayerType()I
move-result v0
if-ne v0, v1, :cond_0
invoke-virtual {p0, p1}, Landroid/widget/ImageView;->getDrawingCache(Z)Landroid/graphics/Bitmap;
move-result-object p1
if-nez p1, :cond_0
sget-object p1, Lf/d/a/r;->e:Lf/d/a/r;
invoke-virtual {p0, p1}, Lcom/airbnb/lottie/LottieAnimationView;->setRenderMode(Lf/d/a/r;)V
:cond_0
iget p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->s:I
sub-int/2addr p1, v1
iput p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->s:I
const-string p1, "buildDrawingCache"
invoke-static {p1}, Lf/d/a/c;->a(Ljava/lang/String;)F
return-void
.end method
.method public c()V
.locals 1
.annotation build Landroidx/annotation/MainThread;
.end annotation
invoke-virtual {p0}, Landroid/widget/ImageView;->isShown()Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
invoke-virtual {v0}, Lf/d/a/h;->i()V
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieAnimationView;->b()V
goto :goto_0
:cond_0
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->l:Z
:goto_0
return-void
.end method
.method public getComposition()Lf/d/a/d;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->u:Lf/d/a/d;
return-object v0
.end method
.method public getDuration()J
.locals 2
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->u:Lf/d/a/d;
if-eqz v0, :cond_0
invoke-virtual {v0}, Lf/d/a/d;->b()F
move-result v0
float-to-long v0, v0
goto :goto_0
:cond_0
const-wide/16 v0, 0x0
:goto_0
return-wide v0
.end method
.method public getFrame()I
.locals 1
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
iget-object v0, v0, Lf/d/a/h;->f:Lf/d/a/z/d;
iget v0, v0, Lf/d/a/z/d;->i:F
float-to-int v0, v0
return v0
.end method
.method public getImageAssetsFolder()Ljava/lang/String;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
iget-object v0, v0, Lf/d/a/h;->n:Ljava/lang/String;
return-object v0
.end method
.method public getMaxFrame()F
.locals 1
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
invoke-virtual {v0}, Lf/d/a/h;->d()F
move-result v0
return v0
.end method
.method public getMinFrame()F
.locals 1
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
invoke-virtual {v0}, Lf/d/a/h;->e()F
move-result v0
return v0
.end method
.method public getPerformanceTracker()Lf/d/a/q;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
iget-object v0, v0, Lf/d/a/h;->e:Lf/d/a/d;
if-eqz v0, :cond_0
iget-object v0, v0, Lf/d/a/d;->a:Lf/d/a/q;
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return-object v0
.end method
.method public getProgress()F
.locals 1
.annotation build Landroidx/annotation/FloatRange;
from = 0.0
to = 1.0
.end annotation
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
invoke-virtual {v0}, Lf/d/a/h;->f()F
move-result v0
return v0
.end method
.method public getRepeatCount()I
.locals 1
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
invoke-virtual {v0}, Lf/d/a/h;->g()I
move-result v0
return v0
.end method
.method public getRepeatMode()I
.locals 1
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
iget-object v0, v0, Lf/d/a/h;->f:Lf/d/a/z/d;
invoke-virtual {v0}, Landroid/animation/ValueAnimator;->getRepeatMode()I
move-result v0
return v0
.end method
.method public getScale()F
.locals 1
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
iget v0, v0, Lf/d/a/h;->g:F
return v0
.end method
.method public getSpeed()F
.locals 1
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
iget-object v0, v0, Lf/d/a/h;->f:Lf/d/a/z/d;
iget v0, v0, Lf/d/a/z/d;->f:F
return v0
.end method
.method public invalidateDrawable(Landroid/graphics/drawable/Drawable;)V
.locals 2
.param p1 # Landroid/graphics/drawable/Drawable;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
invoke-virtual {p0}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;
move-result-object v0
iget-object v1, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
if-ne v0, v1, :cond_0
invoke-super {p0, v1}, Landroid/widget/ImageView;->invalidateDrawable(Landroid/graphics/drawable/Drawable;)V
goto :goto_0
:cond_0
invoke-super {p0, p1}, Landroid/widget/ImageView;->invalidateDrawable(Landroid/graphics/drawable/Drawable;)V
:goto_0
return-void
.end method
.method public onAttachedToWindow()V
.locals 2
invoke-super {p0}, Landroid/widget/ImageView;->onAttachedToWindow()V
iget-boolean v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->o:Z
if-nez v0, :cond_0
iget-boolean v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->n:Z
if-eqz v0, :cond_1
:cond_0
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieAnimationView;->c()V
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->o:Z
iput-boolean v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->n:Z
:cond_1
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x17
if-ge v0, v1, :cond_2
invoke-virtual {p0}, Landroid/widget/ImageView;->getVisibility()I
move-result v0
invoke-virtual {p0, p0, v0}, Lcom/airbnb/lottie/LottieAnimationView;->onVisibilityChanged(Landroid/view/View;I)V
:cond_2
return-void
.end method
.method public onDetachedFromWindow()V
.locals 2
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
invoke-virtual {v0}, Lf/d/a/h;->h()Z
move-result v0
if-eqz v0, :cond_0
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->n:Z
iput-boolean v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->m:Z
iput-boolean v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->l:Z
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
iget-object v1, v0, Lf/d/a/h;->j:Ljava/util/ArrayList;
invoke-virtual {v1}, Ljava/util/ArrayList;->clear()V
iget-object v0, v0, Lf/d/a/h;->f:Lf/d/a/z/d;
invoke-virtual {v0}, Lf/d/a/z/d;->cancel()V
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieAnimationView;->b()V
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->n:Z
:cond_0
invoke-super {p0}, Landroid/widget/ImageView;->onDetachedFromWindow()V
return-void
.end method
.method public onRestoreInstanceState(Landroid/os/Parcelable;)V
.locals 2
instance-of v0, p1, Lcom/airbnb/lottie/LottieAnimationView$SavedState;
if-nez v0, :cond_0
invoke-super {p0, p1}, Landroid/widget/ImageView;->onRestoreInstanceState(Landroid/os/Parcelable;)V
return-void
:cond_0
check-cast p1, Lcom/airbnb/lottie/LottieAnimationView$SavedState;
invoke-virtual {p1}, Landroid/view/View$BaseSavedState;->getSuperState()Landroid/os/Parcelable;
move-result-object v0
invoke-super {p0, v0}, Landroid/widget/ImageView;->onRestoreInstanceState(Landroid/os/Parcelable;)V
iget-object v0, p1, Lcom/airbnb/lottie/LottieAnimationView$SavedState;->d:Ljava/lang/String;
iput-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->j:Ljava/lang/String;
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-nez v0, :cond_1
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->j:Ljava/lang/String;
invoke-virtual {p0, v0}, Lcom/airbnb/lottie/LottieAnimationView;->setAnimation(Ljava/lang/String;)V
:cond_1
iget v0, p1, Lcom/airbnb/lottie/LottieAnimationView$SavedState;->e:I
iput v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->k:I
if-eqz v0, :cond_2
invoke-virtual {p0, v0}, Lcom/airbnb/lottie/LottieAnimationView;->setAnimation(I)V
:cond_2
iget v0, p1, Lcom/airbnb/lottie/LottieAnimationView$SavedState;->f:F
invoke-virtual {p0, v0}, Lcom/airbnb/lottie/LottieAnimationView;->setProgress(F)V
iget-boolean v0, p1, Lcom/airbnb/lottie/LottieAnimationView$SavedState;->g:Z
if-eqz v0, :cond_3
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieAnimationView;->c()V
:cond_3
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
iget-object v1, p1, Lcom/airbnb/lottie/LottieAnimationView$SavedState;->h:Ljava/lang/String;
iput-object v1, v0, Lf/d/a/h;->n:Ljava/lang/String;
iget v0, p1, Lcom/airbnb/lottie/LottieAnimationView$SavedState;->i:I
invoke-virtual {p0, v0}, Lcom/airbnb/lottie/LottieAnimationView;->setRepeatMode(I)V
iget p1, p1, Lcom/airbnb/lottie/LottieAnimationView$SavedState;->j:I
invoke-virtual {p0, p1}, Lcom/airbnb/lottie/LottieAnimationView;->setRepeatCount(I)V
return-void
.end method
.method public onSaveInstanceState()Landroid/os/Parcelable;
.locals 3
invoke-super {p0}, Landroid/widget/ImageView;->onSaveInstanceState()Landroid/os/Parcelable;
move-result-object v0
new-instance v1, Lcom/airbnb/lottie/LottieAnimationView$SavedState;
invoke-direct {v1, v0}, Lcom/airbnb/lottie/LottieAnimationView$SavedState;-><init>(Landroid/os/Parcelable;)V
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->j:Ljava/lang/String;
iput-object v0, v1, Lcom/airbnb/lottie/LottieAnimationView$SavedState;->d:Ljava/lang/String;
iget v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->k:I
iput v0, v1, Lcom/airbnb/lottie/LottieAnimationView$SavedState;->e:I
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
invoke-virtual {v0}, Lf/d/a/h;->f()F
move-result v0
iput v0, v1, Lcom/airbnb/lottie/LottieAnimationView$SavedState;->f:F
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
invoke-virtual {v0}, Lf/d/a/h;->h()Z
move-result v0
if-nez v0, :cond_1
invoke-static {p0}, Landroidx/core/view/ViewCompat;->isAttachedToWindow(Landroid/view/View;)Z
move-result v0
if-nez v0, :cond_0
iget-boolean v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->n:Z
if-eqz v0, :cond_0
goto :goto_0
:cond_0
const/4 v0, 0x0
goto :goto_1
:cond_1
:goto_0
const/4 v0, 0x1
:goto_1
iput-boolean v0, v1, Lcom/airbnb/lottie/LottieAnimationView$SavedState;->g:Z
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
iget-object v2, v0, Lf/d/a/h;->n:Ljava/lang/String;
iput-object v2, v1, Lcom/airbnb/lottie/LottieAnimationView$SavedState;->h:Ljava/lang/String;
iget-object v0, v0, Lf/d/a/h;->f:Lf/d/a/z/d;
invoke-virtual {v0}, Landroid/animation/ValueAnimator;->getRepeatMode()I
move-result v0
iput v0, v1, Lcom/airbnb/lottie/LottieAnimationView$SavedState;->i:I
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
invoke-virtual {v0}, Lf/d/a/h;->g()I
move-result v0
iput v0, v1, Lcom/airbnb/lottie/LottieAnimationView$SavedState;->j:I
return-object v1
.end method
.method public onVisibilityChanged(Landroid/view/View;I)V
.locals 1
.param p1 # Landroid/view/View;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget-boolean p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->i:Z
if-nez p1, :cond_0
return-void
:cond_0
invoke-virtual {p0}, Landroid/widget/ImageView;->isShown()Z
move-result p1
const/4 p2, 0x1
const/4 v0, 0x0
if-eqz p1, :cond_4
iget-boolean p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->m:Z
if-eqz p1, :cond_2
invoke-virtual {p0}, Landroid/widget/ImageView;->isShown()Z
move-result p1
if-eqz p1, :cond_1
iget-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
invoke-virtual {p1}, Lf/d/a/h;->j()V
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieAnimationView;->b()V
goto :goto_0
:cond_1
iput-boolean v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->l:Z
iput-boolean p2, p0, Lcom/airbnb/lottie/LottieAnimationView;->m:Z
goto :goto_0
:cond_2
iget-boolean p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->l:Z
if-eqz p1, :cond_3
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieAnimationView;->c()V
:cond_3
:goto_0
iput-boolean v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->m:Z
iput-boolean v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->l:Z
goto :goto_1
:cond_4
iget-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
invoke-virtual {p1}, Lf/d/a/h;->h()Z
move-result p1
if-eqz p1, :cond_5
iput-boolean v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->o:Z
iput-boolean v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->n:Z
iput-boolean v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->m:Z
iput-boolean v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->l:Z
iget-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
iget-object v0, p1, Lf/d/a/h;->j:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
iget-object p1, p1, Lf/d/a/h;->f:Lf/d/a/z/d;
invoke-virtual {p1}, Lf/d/a/z/d;->k()V
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieAnimationView;->b()V
iput-boolean p2, p0, Lcom/airbnb/lottie/LottieAnimationView;->m:Z
:cond_5
:goto_1
return-void
.end method
.method public setAnimation(I)V
.locals 4
.param p1 # I
.annotation build Landroidx/annotation/RawRes;
.end annotation
.end param
iput p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->k:I
const/4 v0, 0x0
iput-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->j:Ljava/lang/String;
iget-boolean v1, p0, Lcom/airbnb/lottie/LottieAnimationView;->p:Z
if-eqz v1, :cond_0
invoke-virtual {p0}, Landroid/widget/ImageView;->getContext()Landroid/content/Context;
move-result-object v0
invoke-static {v0, p1}, Lf/d/a/e;->j(Landroid/content/Context;I)Ljava/lang/String;
move-result-object v1
new-instance v2, Ljava/lang/ref/WeakReference;
invoke-direct {v2, v0}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
invoke-virtual {v0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v0
new-instance v3, Lf/d/a/e$d;
invoke-direct {v3, v2, v0, p1}, Lf/d/a/e$d;-><init>(Ljava/lang/ref/WeakReference;Landroid/content/Context;I)V
invoke-static {v1, v3}, Lf/d/a/e;->a(Ljava/lang/String;Ljava/util/concurrent/Callable;)Lf/d/a/p;
move-result-object p1
goto :goto_0
:cond_0
invoke-virtual {p0}, Landroid/widget/ImageView;->getContext()Landroid/content/Context;
move-result-object v1
invoke-static {v1, p1, v0}, Lf/d/a/e;->f(Landroid/content/Context;ILjava/lang/String;)Lf/d/a/p;
move-result-object p1
:goto_0
invoke-direct {p0, p1}, Lcom/airbnb/lottie/LottieAnimationView;->setCompositionTask(Lf/d/a/p;)V
return-void
.end method
.method public setAnimation(Ljava/lang/String;)V
.locals 2
iput-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->j:Ljava/lang/String;
const/4 v0, 0x0
iput v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->k:I
iget-boolean v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->p:Z
if-eqz v0, :cond_0
invoke-virtual {p0}, Landroid/widget/ImageView;->getContext()Landroid/content/Context;
move-result-object v0
invoke-static {v0, p1}, Lf/d/a/e;->b(Landroid/content/Context;Ljava/lang/String;)Lf/d/a/p;
move-result-object p1
goto :goto_0
:cond_0
invoke-virtual {p0}, Landroid/widget/ImageView;->getContext()Landroid/content/Context;
move-result-object v0
const/4 v1, 0x0
invoke-static {v0, p1, v1}, Lf/d/a/e;->c(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Lf/d/a/p;
move-result-object p1
:goto_0
invoke-direct {p0, p1}, Lcom/airbnb/lottie/LottieAnimationView;->setCompositionTask(Lf/d/a/p;)V
return-void
.end method
.method public setAnimationFromJson(Ljava/lang/String;)V
.locals 2
.annotation runtime Ljava/lang/Deprecated;
.end annotation
new-instance v0, Ljava/io/ByteArrayInputStream;
invoke-virtual {p1}, Ljava/lang/String;->getBytes()[B
move-result-object p1
invoke-direct {v0, p1}, Ljava/io/ByteArrayInputStream;-><init>([B)V
new-instance p1, Lf/d/a/g;
const/4 v1, 0x0
invoke-direct {p1, v0, v1}, Lf/d/a/g;-><init>(Ljava/io/InputStream;Ljava/lang/String;)V
invoke-static {v1, p1}, Lf/d/a/e;->a(Ljava/lang/String;Ljava/util/concurrent/Callable;)Lf/d/a/p;
move-result-object p1
invoke-direct {p0, p1}, Lcom/airbnb/lottie/LottieAnimationView;->setCompositionTask(Lf/d/a/p;)V
return-void
.end method
.method public setAnimationFromUrl(Ljava/lang/String;)V
.locals 3
iget-boolean v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->p:Z
if-eqz v0, :cond_0
invoke-virtual {p0}, Landroid/widget/ImageView;->getContext()Landroid/content/Context;
move-result-object v0
invoke-static {v0, p1}, Lf/d/a/e;->g(Landroid/content/Context;Ljava/lang/String;)Lf/d/a/p;
move-result-object p1
goto :goto_0
:cond_0
invoke-virtual {p0}, Landroid/widget/ImageView;->getContext()Landroid/content/Context;
move-result-object v0
const/4 v1, 0x0
new-instance v2, Lf/d/a/f;
invoke-direct {v2, v0, p1, v1}, Lf/d/a/f;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
invoke-static {v1, v2}, Lf/d/a/e;->a(Ljava/lang/String;Ljava/util/concurrent/Callable;)Lf/d/a/p;
move-result-object p1
:goto_0
invoke-direct {p0, p1}, Lcom/airbnb/lottie/LottieAnimationView;->setCompositionTask(Lf/d/a/p;)V
return-void
.end method
.method public setApplyingOpacityToLayersEnabled(Z)V
.locals 1
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
iput-boolean p1, v0, Lf/d/a/h;->u:Z
return-void
.end method
.method public setCacheComposition(Z)V
.locals 0
iput-boolean p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->p:Z
return-void
.end method
.method public setComposition(Lf/d/a/d;)V
.locals 7
.param p1 # Lf/d/a/d;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
invoke-virtual {v0, p0}, Landroid/graphics/drawable/Drawable;->setCallback(Landroid/graphics/drawable/Drawable$Callback;)V
iput-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->u:Lf/d/a/d;
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
iget-object v1, v0, Lf/d/a/h;->e:Lf/d/a/d;
const/4 v2, 0x0
const/4 v3, 0x1
if-ne v1, p1, :cond_0
goto/16 :goto_2
:cond_0
iput-boolean v2, v0, Lf/d/a/h;->w:Z
invoke-virtual {v0}, Lf/d/a/h;->b()V
iput-object p1, v0, Lf/d/a/h;->e:Lf/d/a/d;
new-instance v1, Lf/d/a/w/l/c;
invoke-static {p1}, Lf/d/a/y/r;->a(Lf/d/a/d;)Lf/d/a/w/l/e;
move-result-object v4
iget-object v5, v0, Lf/d/a/h;->e:Lf/d/a/d;
iget-object v6, v5, Lf/d/a/d;->i:Ljava/util/List;
invoke-direct {v1, v0, v4, v6, v5}, Lf/d/a/w/l/c;-><init>(Lf/d/a/h;Lf/d/a/w/l/e;Ljava/util/List;Lf/d/a/d;)V
iput-object v1, v0, Lf/d/a/h;->r:Lf/d/a/w/l/c;
iget-object v1, v0, Lf/d/a/h;->f:Lf/d/a/z/d;
iget-object v4, v1, Lf/d/a/z/d;->m:Lf/d/a/d;
if-nez v4, :cond_1
const/4 v2, 0x1
:cond_1
iput-object p1, v1, Lf/d/a/z/d;->m:Lf/d/a/d;
if-eqz v2, :cond_2
iget v2, v1, Lf/d/a/z/d;->k:F
iget v4, p1, Lf/d/a/d;->k:F
invoke-static {v2, v4}, Ljava/lang/Math;->max(FF)F
move-result v2
float-to-int v2, v2
int-to-float v2, v2
iget v4, v1, Lf/d/a/z/d;->l:F
iget v5, p1, Lf/d/a/d;->l:F
invoke-static {v4, v5}, Ljava/lang/Math;->min(FF)F
move-result v4
float-to-int v4, v4
int-to-float v4, v4
invoke-virtual {v1, v2, v4}, Lf/d/a/z/d;->n(FF)V
goto :goto_0
:cond_2
iget v2, p1, Lf/d/a/d;->k:F
float-to-int v2, v2
int-to-float v2, v2
iget v4, p1, Lf/d/a/d;->l:F
float-to-int v4, v4
int-to-float v4, v4
invoke-virtual {v1, v2, v4}, Lf/d/a/z/d;->n(FF)V
:goto_0
iget v2, v1, Lf/d/a/z/d;->i:F
const/4 v4, 0x0
iput v4, v1, Lf/d/a/z/d;->i:F
float-to-int v2, v2
int-to-float v2, v2
invoke-virtual {v1, v2}, Lf/d/a/z/d;->m(F)V
invoke-virtual {v1}, Lf/d/a/z/a;->c()V
iget-object v1, v0, Lf/d/a/h;->f:Lf/d/a/z/d;
invoke-virtual {v1}, Lf/d/a/z/d;->getAnimatedFraction()F
move-result v1
invoke-virtual {v0, v1}, Lf/d/a/h;->t(F)V
iget v1, v0, Lf/d/a/h;->g:F
iput v1, v0, Lf/d/a/h;->g:F
invoke-virtual {v0}, Lf/d/a/h;->u()V
invoke-virtual {v0}, Lf/d/a/h;->u()V
new-instance v1, Ljava/util/ArrayList;
iget-object v2, v0, Lf/d/a/h;->j:Ljava/util/ArrayList;
invoke-direct {v1, v2}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_1
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_3
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lf/d/a/h$o;
invoke-interface {v2, p1}, Lf/d/a/h$o;->a(Lf/d/a/d;)V
invoke-interface {v1}, Ljava/util/Iterator;->remove()V
goto :goto_1
:cond_3
iget-object v1, v0, Lf/d/a/h;->j:Ljava/util/ArrayList;
invoke-virtual {v1}, Ljava/util/ArrayList;->clear()V
iget-boolean v1, v0, Lf/d/a/h;->t:Z
iget-object v2, p1, Lf/d/a/d;->a:Lf/d/a/q;
iput-boolean v1, v2, Lf/d/a/q;->a:Z
invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getCallback()Landroid/graphics/drawable/Drawable$Callback;
move-result-object v1
instance-of v2, v1, Landroid/widget/ImageView;
if-eqz v2, :cond_4
check-cast v1, Landroid/widget/ImageView;
const/4 v2, 0x0
invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
:cond_4
const/4 v2, 0x1
:goto_2
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieAnimationView;->b()V
invoke-virtual {p0}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;
move-result-object v0
iget-object v1, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
if-ne v0, v1, :cond_5
if-nez v2, :cond_5
return-void
:cond_5
invoke-virtual {p0}, Landroid/widget/ImageView;->getVisibility()I
move-result v0
invoke-virtual {p0, p0, v0}, Lcom/airbnb/lottie/LottieAnimationView;->onVisibilityChanged(Landroid/view/View;I)V
invoke-virtual {p0}, Landroid/widget/ImageView;->requestLayout()V
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->r:Ljava/util/Set;
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_3
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_6
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lf/d/a/l;
invoke-interface {v1, p1}, Lf/d/a/l;->a(Lf/d/a/d;)V
goto :goto_3
:cond_6
return-void
.end method
.method public setFailureListener(Lf/d/a/j;)V
.locals 0
.param p1 # Lf/d/a/j;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lf/d/a/j<",
"Ljava/lang/Throwable;",
">;)V"
}
.end annotation
iput-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Lf/d/a/j;
return-void
.end method
.method public setFallbackResource(I)V
.locals 0
.param p1 # I
.annotation build Landroidx/annotation/DrawableRes;
.end annotation
.end param
iput p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->g:I
return-void
.end method
.method public setFontAssetDelegate(Lf/d/a/a;)V
.locals 0
return-void
.end method
.method public setFrame(I)V
.locals 1
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
invoke-virtual {v0, p1}, Lf/d/a/h;->k(I)V
return-void
.end method
.method public setImageAssetDelegate(Lf/d/a/b;)V
.locals 1
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
iput-object p1, v0, Lf/d/a/h;->o:Lf/d/a/b;
iget-object v0, v0, Lf/d/a/h;->m:Lf/d/a/v/b;
if-eqz v0, :cond_0
iput-object p1, v0, Lf/d/a/v/b;->c:Lf/d/a/b;
:cond_0
return-void
.end method
.method public setImageAssetsFolder(Ljava/lang/String;)V
.locals 1
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
iput-object p1, v0, Lf/d/a/h;->n:Ljava/lang/String;
return-void
.end method
.method public setImageBitmap(Landroid/graphics/Bitmap;)V
.locals 0
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieAnimationView;->a()V
invoke-super {p0, p1}, Landroidx/appcompat/widget/AppCompatImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V
return-void
.end method
.method public setImageDrawable(Landroid/graphics/drawable/Drawable;)V
.locals 0
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieAnimationView;->a()V
invoke-super {p0, p1}, Landroidx/appcompat/widget/AppCompatImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
return-void
.end method
.method public setImageResource(I)V
.locals 0
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieAnimationView;->a()V
invoke-super {p0, p1}, Landroidx/appcompat/widget/AppCompatImageView;->setImageResource(I)V
return-void
.end method
.method public setMaxFrame(I)V
.locals 1
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
invoke-virtual {v0, p1}, Lf/d/a/h;->l(I)V
return-void
.end method
.method public setMaxFrame(Ljava/lang/String;)V
.locals 1
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
invoke-virtual {v0, p1}, Lf/d/a/h;->m(Ljava/lang/String;)V
return-void
.end method
.method public setMaxProgress(F)V
.locals 1
.param p1 # F
.annotation build Landroidx/annotation/FloatRange;
from = 0.0
to = 1.0
.end annotation
.end param
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
invoke-virtual {v0, p1}, Lf/d/a/h;->n(F)V
return-void
.end method
.method public setMinAndMaxFrame(Ljava/lang/String;)V
.locals 1
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
invoke-virtual {v0, p1}, Lf/d/a/h;->p(Ljava/lang/String;)V
return-void
.end method
.method public setMinFrame(I)V
.locals 1
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
invoke-virtual {v0, p1}, Lf/d/a/h;->q(I)V
return-void
.end method
.method public setMinFrame(Ljava/lang/String;)V
.locals 1
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
invoke-virtual {v0, p1}, Lf/d/a/h;->r(Ljava/lang/String;)V
return-void
.end method
.method public setMinProgress(F)V
.locals 1
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
invoke-virtual {v0, p1}, Lf/d/a/h;->s(F)V
return-void
.end method
.method public setPerformanceTrackingEnabled(Z)V
.locals 1
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
iput-boolean p1, v0, Lf/d/a/h;->t:Z
iget-object v0, v0, Lf/d/a/h;->e:Lf/d/a/d;
if-eqz v0, :cond_0
iget-object v0, v0, Lf/d/a/d;->a:Lf/d/a/q;
iput-boolean p1, v0, Lf/d/a/q;->a:Z
:cond_0
return-void
.end method
.method public setProgress(F)V
.locals 1
.param p1 # F
.annotation build Landroidx/annotation/FloatRange;
from = 0.0
to = 1.0
.end annotation
.end param
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
invoke-virtual {v0, p1}, Lf/d/a/h;->t(F)V
return-void
.end method
.method public setRenderMode(Lf/d/a/r;)V
.locals 0
iput-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->q:Lf/d/a/r;
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieAnimationView;->b()V
return-void
.end method
.method public setRepeatCount(I)V
.locals 1
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
iget-object v0, v0, Lf/d/a/h;->f:Lf/d/a/z/d;
invoke-virtual {v0, p1}, Landroid/animation/ValueAnimator;->setRepeatCount(I)V
return-void
.end method
.method public setRepeatMode(I)V
.locals 1
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
iget-object v0, v0, Lf/d/a/h;->f:Lf/d/a/z/d;
invoke-virtual {v0, p1}, Lf/d/a/z/d;->setRepeatMode(I)V
return-void
.end method
.method public setSafeMode(Z)V
.locals 1
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
iput-boolean p1, v0, Lf/d/a/h;->i:Z
return-void
.end method
.method public setScale(F)V
.locals 1
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
iput p1, v0, Lf/d/a/h;->g:F
invoke-virtual {v0}, Lf/d/a/h;->u()V
invoke-virtual {p0}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;
move-result-object p1
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
if-ne p1, v0, :cond_0
const/4 p1, 0x0
invoke-virtual {p0, p1}, Lcom/airbnb/lottie/LottieAnimationView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
iget-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
invoke-virtual {p0, p1}, Lcom/airbnb/lottie/LottieAnimationView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
:cond_0
return-void
.end method
.method public setScaleType(Landroid/widget/ImageView$ScaleType;)V
.locals 1
invoke-super {p0, p1}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
if-eqz v0, :cond_0
iput-object p1, v0, Lf/d/a/h;->l:Landroid/widget/ImageView$ScaleType;
:cond_0
return-void
.end method
.method public setSpeed(F)V
.locals 1
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/h;
iget-object v0, v0, Lf/d/a/h;->f:Lf/d/a/z/d;
iput p1, v0, Lf/d/a/z/d;->f:F
return-void
.end method
.method public setTextDelegate(Lf/d/a/t;)V
.locals 0
return-void
.end method