apkfuckery/com.discord/smali/com/airbnb/lottie/LottieAnimationView.smali
2020-11-16 22:05:17 +00:00

2132 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/l;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lf/d/a/l<",
"Ljava/lang/Throwable;",
">;"
}
.end annotation
.end field
# instance fields
.field public final d:Lf/d/a/l;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lf/d/a/l<",
"Lf/d/a/d;",
">;"
}
.end annotation
.end field
.field public final e:Lf/d/a/l;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lf/d/a/l<",
"Ljava/lang/Throwable;",
">;"
}
.end annotation
.end field
.field public f:Lf/d/a/l;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lf/d/a/l<",
"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/j;
.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/t;
.field public r:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Lf/d/a/n;",
">;"
}
.end annotation
.end field
.field public s:I
.field public t:Lf/d/a/r;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lf/d/a/r<",
"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/l;
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/l;
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/l;
const/4 p1, 0x0
iput p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->g:I
new-instance v0, Lf/d/a/j;
invoke-direct {v0}, Lf/d/a/j;-><init>()V
iput-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/j;
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 v1, 0x1
iput-boolean v1, p0, Lcom/airbnb/lottie/LottieAnimationView;->p:Z
sget-object v2, Lf/d/a/t;->d:Lf/d/a/t;
iput-object v2, p0, Lcom/airbnb/lottie/LottieAnimationView;->q:Lf/d/a/t;
new-instance v2, Ljava/util/HashSet;
invoke-direct {v2}, Ljava/util/HashSet;-><init>()V
iput-object v2, p0, Lcom/airbnb/lottie/LottieAnimationView;->r:Ljava/util/Set;
iput p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->s:I
sget v2, Lcom/airbnb/lottie/R$a;->lottieAnimationViewStyle:I
invoke-virtual {p0}, Landroid/widget/ImageView;->getContext()Landroid/content/Context;
move-result-object v3
sget-object v4, Lcom/airbnb/lottie/R$b;->LottieAnimationView:[I
invoke-virtual {v3, p2, v4, v2, 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 v2
if-nez v2, :cond_5
sget v2, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_cacheComposition:I
invoke-virtual {p2, v2, v1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v2
iput-boolean v2, p0, Lcom/airbnb/lottie/LottieAnimationView;->p:Z
sget v2, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_rawRes:I
invoke-virtual {p2, v2}, Landroid/content/res/TypedArray;->hasValue(I)Z
move-result v3
sget v4, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_fileName:I
invoke-virtual {p2, v4}, Landroid/content/res/TypedArray;->hasValue(I)Z
move-result v5
sget v6, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_url:I
invoke-virtual {p2, v6}, Landroid/content/res/TypedArray;->hasValue(I)Z
move-result v7
if-eqz v3, :cond_1
if-nez v5, :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 v3, :cond_2
invoke-virtual {p2, v2, p1}, Landroid/content/res/TypedArray;->getResourceId(II)I
move-result v2
if-eqz v2, :cond_4
invoke-virtual {p0, v2}, Lcom/airbnb/lottie/LottieAnimationView;->setAnimation(I)V
goto :goto_1
:cond_2
if-eqz v5, :cond_3
invoke-virtual {p2, v4}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
move-result-object v2
if-eqz v2, :cond_4
invoke-virtual {p0, v2}, Lcom/airbnb/lottie/LottieAnimationView;->setAnimation(Ljava/lang/String;)V
goto :goto_1
:cond_3
if-eqz v7, :cond_4
invoke-virtual {p2, v6}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
move-result-object v2
if-eqz v2, :cond_4
invoke-virtual {p0, v2}, Lcom/airbnb/lottie/LottieAnimationView;->setAnimationFromUrl(Ljava/lang/String;)V
:cond_4
:goto_1
sget v2, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_fallbackRes:I
invoke-virtual {p2, v2, p1}, Landroid/content/res/TypedArray;->getResourceId(II)I
move-result v2
invoke-virtual {p0, v2}, Lcom/airbnb/lottie/LottieAnimationView;->setFallbackResource(I)V
:cond_5
sget v2, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_autoPlay:I
invoke-virtual {p2, v2, p1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v2
if-eqz v2, :cond_6
iput-boolean v1, p0, Lcom/airbnb/lottie/LottieAnimationView;->n:Z
iput-boolean v1, p0, Lcom/airbnb/lottie/LottieAnimationView;->o:Z
:cond_6
sget v2, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_loop:I
invoke-virtual {p2, v2, p1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v2
const/4 v3, -0x1
if-eqz v2, :cond_7
iget-object v2, v0, Lf/d/a/j;->f:Lf/d/a/b0/d;
invoke-virtual {v2, v3}, Landroid/animation/ValueAnimator;->setRepeatCount(I)V
:cond_7
sget v2, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_repeatMode:I
invoke-virtual {p2, v2}, Landroid/content/res/TypedArray;->hasValue(I)Z
move-result v4
if-eqz v4, :cond_8
invoke-virtual {p2, v2, v1}, Landroid/content/res/TypedArray;->getInt(II)I
move-result v2
invoke-virtual {p0, v2}, Lcom/airbnb/lottie/LottieAnimationView;->setRepeatMode(I)V
:cond_8
sget v2, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_repeatCount:I
invoke-virtual {p2, v2}, Landroid/content/res/TypedArray;->hasValue(I)Z
move-result v4
if-eqz v4, :cond_9
invoke-virtual {p2, v2, v3}, Landroid/content/res/TypedArray;->getInt(II)I
move-result v2
invoke-virtual {p0, v2}, Lcom/airbnb/lottie/LottieAnimationView;->setRepeatCount(I)V
:cond_9
sget v2, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_speed:I
invoke-virtual {p2, v2}, Landroid/content/res/TypedArray;->hasValue(I)Z
move-result v3
const/high16 v4, 0x3f800000 # 1.0f
if-eqz v3, :cond_a
invoke-virtual {p2, v2, v4}, Landroid/content/res/TypedArray;->getFloat(IF)F
move-result v2
invoke-virtual {p0, v2}, Lcom/airbnb/lottie/LottieAnimationView;->setSpeed(F)V
:cond_a
sget v2, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_imageAssetsFolder:I
invoke-virtual {p2, v2}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
move-result-object v2
invoke-virtual {p0, v2}, Lcom/airbnb/lottie/LottieAnimationView;->setImageAssetsFolder(Ljava/lang/String;)V
sget v2, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_progress:I
const/4 v3, 0x0
invoke-virtual {p2, v2, v3}, Landroid/content/res/TypedArray;->getFloat(IF)F
move-result v2
invoke-virtual {p0, v2}, Lcom/airbnb/lottie/LottieAnimationView;->setProgress(F)V
sget v2, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_enableMergePathsForKitKatAndAbove:I
invoke-virtual {p2, v2, p1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v2
iget-boolean v5, v0, Lf/d/a/j;->q:Z
if-ne v5, v2, :cond_b
goto :goto_2
:cond_b
iput-boolean v2, v0, Lf/d/a/j;->q:Z
iget-object v2, v0, Lf/d/a/j;->e:Lf/d/a/d;
if-eqz v2, :cond_c
invoke-virtual {v0}, Lf/d/a/j;->b()V
:cond_c
:goto_2
sget v2, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_colorFilter:I
invoke-virtual {p2, v2}, Landroid/content/res/TypedArray;->hasValue(I)Z
move-result v5
if-eqz v5, :cond_d
new-instance v5, Lf/d/a/u;
invoke-virtual {p2, v2, p1}, Landroid/content/res/TypedArray;->getColor(II)I
move-result v2
invoke-direct {v5, v2}, Lf/d/a/u;-><init>(I)V
new-instance v2, Lf/d/a/y/e;
const-string v6, "**"
filled-new-array {v6}, [Ljava/lang/String;
move-result-object v6
invoke-direct {v2, v6}, Lf/d/a/y/e;-><init>([Ljava/lang/String;)V
new-instance v6, Lf/d/a/c0/c;
invoke-direct {v6, v5}, Lf/d/a/c0/c;-><init>(Ljava/lang/Object;)V
sget-object v5, Lf/d/a/o;->C:Landroid/graphics/ColorFilter;
invoke-virtual {v0, v2, v5, v6}, Lf/d/a/j;->a(Lf/d/a/y/e;Ljava/lang/Object;Lf/d/a/c0/c;)V
:cond_d
sget v2, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_scale:I
invoke-virtual {p2, v2}, Landroid/content/res/TypedArray;->hasValue(I)Z
move-result v5
if-eqz v5, :cond_e
invoke-virtual {p2, v2, v4}, Landroid/content/res/TypedArray;->getFloat(IF)F
move-result v2
iput v2, v0, Lf/d/a/j;->g:F
invoke-virtual {v0}, Lf/d/a/j;->v()V
:cond_e
sget v2, Lcom/airbnb/lottie/R$b;->LottieAnimationView_lottie_renderMode:I
invoke-virtual {p2, v2}, Landroid/content/res/TypedArray;->hasValue(I)Z
move-result v5
if-eqz v5, :cond_10
invoke-virtual {p2, v2, p1}, Landroid/content/res/TypedArray;->getInt(II)I
move-result v2
invoke-static {}, Lf/d/a/t;->values()[Lf/d/a/t;
const/4 v5, 0x3
if-lt v2, v5, :cond_f
const/4 v2, 0x0
:cond_f
invoke-static {}, Lf/d/a/t;->values()[Lf/d/a/t;
move-result-object v5
aget-object v2, v5, v2
invoke-virtual {p0, v2}, Lcom/airbnb/lottie/LottieAnimationView;->setRenderMode(Lf/d/a/t;)V
:cond_10
invoke-virtual {p0}, Landroid/widget/ImageView;->getScaleType()Landroid/widget/ImageView$ScaleType;
move-result-object v2
if-eqz v2, :cond_11
invoke-virtual {p0}, Landroid/widget/ImageView;->getScaleType()Landroid/widget/ImageView$ScaleType;
move-result-object v2
iput-object v2, v0, Lf/d/a/j;->l:Landroid/widget/ImageView$ScaleType;
:cond_11
invoke-virtual {p2}, Landroid/content/res/TypedArray;->recycle()V
invoke-virtual {p0}, Landroid/widget/ImageView;->getContext()Landroid/content/Context;
move-result-object p2
sget-object v2, Lf/d/a/b0/g;->a:Landroid/graphics/PathMeasure;
invoke-virtual {p2}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object p2
const-string v2, "animator_duration_scale"
invoke-static {p2, v2, v4}, Landroid/provider/Settings$Global;->getFloat(Landroid/content/ContentResolver;Ljava/lang/String;F)F
move-result p2
cmpl-float p2, p2, v3
if-eqz p2, :cond_12
const/4 p1, 0x1
:cond_12
invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object p1
invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z
move-result p1
iput-boolean p1, v0, Lf/d/a/j;->h:Z
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieAnimationView;->b()V
iput-boolean v1, p0, Lcom/airbnb/lottie/LottieAnimationView;->i:Z
return-void
.end method
.method private setCompositionTask(Lf/d/a/r;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lf/d/a/r<",
"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/j;
invoke-virtual {v0}, Lf/d/a/j;->c()V
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieAnimationView;->a()V
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->d:Lf/d/a/l;
invoke-virtual {p1, v0}, Lf/d/a/r;->b(Lf/d/a/l;)Lf/d/a/r;
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->e:Lf/d/a/l;
invoke-virtual {p1, v0}, Lf/d/a/r;->a(Lf/d/a/l;)Lf/d/a/r;
iput-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->t:Lf/d/a/r;
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/r;
if-eqz v0, :cond_0
iget-object v1, p0, Lcom/airbnb/lottie/LottieAnimationView;->d:Lf/d/a/l;
monitor-enter v0
:try_start_0
iget-object v2, v0, Lf/d/a/r;->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/r;
iget-object v1, p0, Lcom/airbnb/lottie/LottieAnimationView;->e:Lf/d/a/l;
monitor-enter v0
:try_start_1
iget-object v2, v0, Lf/d/a/r;->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 6
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->q:Lf/d/a/t;
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 v4, v0, Lf/d/a/d;->n:Z
if-eqz v4, :cond_2
sget v4, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v5, 0x1c
if-ge v4, v5, :cond_2
goto :goto_0
:cond_2
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/t;->e:Lf/d/a/t;
invoke-virtual {p0, p1}, Lcom/airbnb/lottie/LottieAnimationView;->setRenderMode(Lf/d/a/t;)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/j;
invoke-virtual {v0}, Lf/d/a/j;->j()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/j;
iget-object v0, v0, Lf/d/a/j;->f:Lf/d/a/b0/d;
iget v0, v0, Lf/d/a/b0/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/j;
iget-object v0, v0, Lf/d/a/j;->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/j;
invoke-virtual {v0}, Lf/d/a/j;->e()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/j;
invoke-virtual {v0}, Lf/d/a/j;->f()F
move-result v0
return v0
.end method
.method public getPerformanceTracker()Lf/d/a/s;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/j;
iget-object v0, v0, Lf/d/a/j;->e:Lf/d/a/d;
if-eqz v0, :cond_0
iget-object v0, v0, Lf/d/a/d;->a:Lf/d/a/s;
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/j;
invoke-virtual {v0}, Lf/d/a/j;->g()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/j;
invoke-virtual {v0}, Lf/d/a/j;->h()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/j;
iget-object v0, v0, Lf/d/a/j;->f:Lf/d/a/b0/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/j;
iget v0, v0, Lf/d/a/j;->g:F
return v0
.end method
.method public getSpeed()F
.locals 1
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/j;
iget-object v0, v0, Lf/d/a/j;->f:Lf/d/a/b0/d;
iget v0, v0, Lf/d/a/b0/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/j;
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/j;
invoke-virtual {v0}, Lf/d/a/j;->i()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/j;
iget-object v1, v0, Lf/d/a/j;->j:Ljava/util/ArrayList;
invoke-virtual {v1}, Ljava/util/ArrayList;->clear()V
iget-object v0, v0, Lf/d/a/j;->f:Lf/d/a/b0/d;
invoke-virtual {v0}, Lf/d/a/b0/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/j;
iget-object v1, p1, Lcom/airbnb/lottie/LottieAnimationView$SavedState;->h:Ljava/lang/String;
iput-object v1, v0, Lf/d/a/j;->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/j;
invoke-virtual {v0}, Lf/d/a/j;->g()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/j;
invoke-virtual {v0}, Lf/d/a/j;->i()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/j;
iget-object v2, v0, Lf/d/a/j;->n:Ljava/lang/String;
iput-object v2, v1, Lcom/airbnb/lottie/LottieAnimationView$SavedState;->h:Ljava/lang/String;
iget-object v0, v0, Lf/d/a/j;->f:Lf/d/a/b0/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/j;
invoke-virtual {v0}, Lf/d/a/j;->h()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/j;
invoke-virtual {p1}, Lf/d/a/j;->k()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/j;
invoke-virtual {p1}, Lf/d/a/j;->i()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/j;
iget-object v0, p1, Lf/d/a/j;->j:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
iget-object p1, p1, Lf/d/a/j;->f:Lf/d/a/b0/d;
invoke-virtual {p1}, Lf/d/a/b0/d;->l()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;->f(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/h;
invoke-direct {v3, v2, v0, p1}, Lf/d/a/h;-><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/r;
move-result-object p1
goto :goto_0
:cond_0
invoke-virtual {p0}, Landroid/widget/ImageView;->getContext()Landroid/content/Context;
move-result-object v1
sget-object v2, Lf/d/a/e;->a:Ljava/util/Map;
new-instance v2, Ljava/lang/ref/WeakReference;
invoke-direct {v2, v1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
invoke-virtual {v1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v1
new-instance v3, Lf/d/a/h;
invoke-direct {v3, v2, v1, p1}, Lf/d/a/h;-><init>(Ljava/lang/ref/WeakReference;Landroid/content/Context;I)V
invoke-static {v0, v3}, Lf/d/a/e;->a(Ljava/lang/String;Ljava/util/concurrent/Callable;)Lf/d/a/r;
move-result-object p1
:goto_0
invoke-direct {p0, p1}, Lcom/airbnb/lottie/LottieAnimationView;->setCompositionTask(Lf/d/a/r;)V
return-void
.end method
.method public setAnimation(Ljava/lang/String;)V
.locals 3
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
sget-object v1, Lf/d/a/e;->a:Ljava/util/Map;
const-string v1, "asset_"
invoke-static {v1, p1}, Lf/e/c/a/a;->r(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v0
new-instance v2, Lf/d/a/g;
invoke-direct {v2, v0, p1, v1}, Lf/d/a/g;-><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/r;
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
sget-object v2, Lf/d/a/e;->a:Ljava/util/Map;
invoke-virtual {v0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v0
new-instance v2, Lf/d/a/g;
invoke-direct {v2, v0, p1, v1}, Lf/d/a/g;-><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/r;
move-result-object p1
:goto_0
invoke-direct {p0, p1}, Lcom/airbnb/lottie/LottieAnimationView;->setCompositionTask(Lf/d/a/r;)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/i;
const/4 v1, 0x0
invoke-direct {p1, v0, v1}, Lf/d/a/i;-><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/r;
move-result-object p1
invoke-direct {p0, p1}, Lcom/airbnb/lottie/LottieAnimationView;->setCompositionTask(Lf/d/a/r;)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
sget-object v1, Lf/d/a/e;->a:Ljava/util/Map;
const-string/jumbo v1, "url_"
invoke-static {v1, p1}, Lf/e/c/a/a;->r(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
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/r;
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/r;
move-result-object p1
:goto_0
invoke-direct {p0, p1}, Lcom/airbnb/lottie/LottieAnimationView;->setCompositionTask(Lf/d/a/r;)V
return-void
.end method
.method public setApplyingOpacityToLayersEnabled(Z)V
.locals 1
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/j;
iput-boolean p1, v0, Lf/d/a/j;->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 6
.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/j;
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/j;
iget-object v1, v0, Lf/d/a/j;->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/j;->w:Z
invoke-virtual {v0}, Lf/d/a/j;->c()V
iput-object p1, v0, Lf/d/a/j;->e:Lf/d/a/d;
invoke-virtual {v0}, Lf/d/a/j;->b()V
iget-object v1, v0, Lf/d/a/j;->f:Lf/d/a/b0/d;
iget-object v4, v1, Lf/d/a/b0/d;->m:Lf/d/a/d;
if-nez v4, :cond_1
const/4 v2, 0x1
:cond_1
iput-object p1, v1, Lf/d/a/b0/d;->m:Lf/d/a/d;
if-eqz v2, :cond_2
iget v2, v1, Lf/d/a/b0/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/b0/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/b0/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/b0/d;->n(FF)V
:goto_0
iget v2, v1, Lf/d/a/b0/d;->i:F
const/4 v4, 0x0
iput v4, v1, Lf/d/a/b0/d;->i:F
float-to-int v2, v2
int-to-float v2, v2
invoke-virtual {v1, v2}, Lf/d/a/b0/d;->m(F)V
invoke-virtual {v1}, Lf/d/a/b0/a;->e()V
iget-object v1, v0, Lf/d/a/j;->f:Lf/d/a/b0/d;
invoke-virtual {v1}, Lf/d/a/b0/d;->getAnimatedFraction()F
move-result v1
invoke-virtual {v0, v1}, Lf/d/a/j;->u(F)V
iget v1, v0, Lf/d/a/j;->g:F
iput v1, v0, Lf/d/a/j;->g:F
invoke-virtual {v0}, Lf/d/a/j;->v()V
invoke-virtual {v0}, Lf/d/a/j;->v()V
new-instance v1, Ljava/util/ArrayList;
iget-object v2, v0, Lf/d/a/j;->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/j$o;
invoke-interface {v2, p1}, Lf/d/a/j$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/j;->j:Ljava/util/ArrayList;
invoke-virtual {v1}, Ljava/util/ArrayList;->clear()V
iget-boolean v1, v0, Lf/d/a/j;->t:Z
iget-object v2, p1, Lf/d/a/d;->a:Lf/d/a/s;
iput-boolean v1, v2, Lf/d/a/s;->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/j;
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/n;
invoke-interface {v1, p1}, Lf/d/a/n;->a(Lf/d/a/d;)V
goto :goto_3
:cond_6
return-void
.end method
.method public setFailureListener(Lf/d/a/l;)V
.locals 0
.param p1 # Lf/d/a/l;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lf/d/a/l<",
"Ljava/lang/Throwable;",
">;)V"
}
.end annotation
iput-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Lf/d/a/l;
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
iget-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/j;
iget-object p1, p1, Lf/d/a/j;->p:Lf/d/a/x/a;
return-void
.end method
.method public setFrame(I)V
.locals 1
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/j;
invoke-virtual {v0, p1}, Lf/d/a/j;->l(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/j;
iput-object p1, v0, Lf/d/a/j;->o:Lf/d/a/b;
iget-object v0, v0, Lf/d/a/j;->m:Lf/d/a/x/b;
if-eqz v0, :cond_0
iput-object p1, v0, Lf/d/a/x/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/j;
iput-object p1, v0, Lf/d/a/j;->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/j;
invoke-virtual {v0, p1}, Lf/d/a/j;->m(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/j;
invoke-virtual {v0, p1}, Lf/d/a/j;->n(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/j;
invoke-virtual {v0, p1}, Lf/d/a/j;->o(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/j;
invoke-virtual {v0, p1}, Lf/d/a/j;->q(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/j;
invoke-virtual {v0, p1}, Lf/d/a/j;->r(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/j;
invoke-virtual {v0, p1}, Lf/d/a/j;->s(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/j;
invoke-virtual {v0, p1}, Lf/d/a/j;->t(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/j;
iput-boolean p1, v0, Lf/d/a/j;->t:Z
iget-object v0, v0, Lf/d/a/j;->e:Lf/d/a/d;
if-eqz v0, :cond_0
iget-object v0, v0, Lf/d/a/d;->a:Lf/d/a/s;
iput-boolean p1, v0, Lf/d/a/s;->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/j;
invoke-virtual {v0, p1}, Lf/d/a/j;->u(F)V
return-void
.end method
.method public setRenderMode(Lf/d/a/t;)V
.locals 0
iput-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->q:Lf/d/a/t;
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/j;
iget-object v0, v0, Lf/d/a/j;->f:Lf/d/a/b0/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/j;
iget-object v0, v0, Lf/d/a/j;->f:Lf/d/a/b0/d;
invoke-virtual {v0, p1}, Lf/d/a/b0/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/j;
iput-boolean p1, v0, Lf/d/a/j;->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/j;
iput p1, v0, Lf/d/a/j;->g:F
invoke-virtual {v0}, Lf/d/a/j;->v()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/j;
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/j;
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/j;
if-eqz v0, :cond_0
iput-object p1, v0, Lf/d/a/j;->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/j;
iget-object v0, v0, Lf/d/a/j;->f:Lf/d/a/b0/d;
iput p1, v0, Lf/d/a/b0/d;->f:F
return-void
.end method
.method public setTextDelegate(Lf/d/a/v;)V
.locals 0
iget-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:Lf/d/a/j;
invoke-static {p1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
return-void
.end method