1970 lines
47 KiB
Smali
1970 lines
47 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 p:Ljava/lang/String;
|
|
|
|
|
|
# instance fields
|
|
.field public final d:Le/d/a/h;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Le/d/a/h<",
|
|
"Le/d/a/d;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final e:Le/d/a/h;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Le/d/a/h<",
|
|
"Ljava/lang/Throwable;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final f:Le/d/a/f;
|
|
|
|
.field public g:Ljava/lang/String;
|
|
|
|
.field public h:I
|
|
.annotation build Landroidx/annotation/RawRes;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public i:Z
|
|
|
|
.field public j:Z
|
|
|
|
.field public k:Z
|
|
|
|
.field public l:Le/d/a/p;
|
|
|
|
.field public m:Ljava/util/Set;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Set<",
|
|
"Le/d/a/j;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public n:Le/d/a/n;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Le/d/a/n<",
|
|
"Le/d/a/d;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public o:Le/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;->p:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1}, Landroidx/appcompat/widget/AppCompatImageView;-><init>(Landroid/content/Context;)V
|
|
|
|
new-instance p1, Lcom/airbnb/lottie/LottieAnimationView$a;
|
|
|
|
invoke-direct {p1, p0}, Lcom/airbnb/lottie/LottieAnimationView$a;-><init>(Lcom/airbnb/lottie/LottieAnimationView;)V
|
|
|
|
iput-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->d:Le/d/a/h;
|
|
|
|
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;->e:Le/d/a/h;
|
|
|
|
new-instance p1, Le/d/a/f;
|
|
|
|
invoke-direct {p1}, Le/d/a/f;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
const/4 p1, 0x0
|
|
|
|
iput-boolean p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->i:Z
|
|
|
|
iput-boolean p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->j:Z
|
|
|
|
iput-boolean p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->k:Z
|
|
|
|
sget-object p1, Le/d/a/p;->d:Le/d/a/p;
|
|
|
|
iput-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->l:Le/d/a/p;
|
|
|
|
new-instance p1, Ljava/util/HashSet;
|
|
|
|
invoke-direct {p1}, Ljava/util/HashSet;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->m:Ljava/util/Set;
|
|
|
|
const/4 p1, 0x0
|
|
|
|
invoke-virtual {p0, p1}, Lcom/airbnb/lottie/LottieAnimationView;->a(Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1, p2}, Landroidx/appcompat/widget/AppCompatImageView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
new-instance p1, Lcom/airbnb/lottie/LottieAnimationView$a;
|
|
|
|
invoke-direct {p1, p0}, Lcom/airbnb/lottie/LottieAnimationView$a;-><init>(Lcom/airbnb/lottie/LottieAnimationView;)V
|
|
|
|
iput-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->d:Le/d/a/h;
|
|
|
|
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;->e:Le/d/a/h;
|
|
|
|
new-instance p1, Le/d/a/f;
|
|
|
|
invoke-direct {p1}, Le/d/a/f;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
const/4 p1, 0x0
|
|
|
|
iput-boolean p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->i:Z
|
|
|
|
iput-boolean p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->j:Z
|
|
|
|
iput-boolean p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->k:Z
|
|
|
|
sget-object p1, Le/d/a/p;->d:Le/d/a/p;
|
|
|
|
iput-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->l:Le/d/a/p;
|
|
|
|
new-instance p1, Ljava/util/HashSet;
|
|
|
|
invoke-direct {p1}, Ljava/util/HashSet;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->m:Ljava/util/Set;
|
|
|
|
invoke-virtual {p0, p2}, Lcom/airbnb/lottie/LottieAnimationView;->a(Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1, p2, p3}, Landroidx/appcompat/widget/AppCompatImageView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
new-instance p1, Lcom/airbnb/lottie/LottieAnimationView$a;
|
|
|
|
invoke-direct {p1, p0}, Lcom/airbnb/lottie/LottieAnimationView$a;-><init>(Lcom/airbnb/lottie/LottieAnimationView;)V
|
|
|
|
iput-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->d:Le/d/a/h;
|
|
|
|
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;->e:Le/d/a/h;
|
|
|
|
new-instance p1, Le/d/a/f;
|
|
|
|
invoke-direct {p1}, Le/d/a/f;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
const/4 p1, 0x0
|
|
|
|
iput-boolean p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->i:Z
|
|
|
|
iput-boolean p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->j:Z
|
|
|
|
iput-boolean p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->k:Z
|
|
|
|
sget-object p1, Le/d/a/p;->d:Le/d/a/p;
|
|
|
|
iput-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->l:Le/d/a/p;
|
|
|
|
new-instance p1, Ljava/util/HashSet;
|
|
|
|
invoke-direct {p1}, Ljava/util/HashSet;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->m:Ljava/util/Set;
|
|
|
|
invoke-virtual {p0, p2}, Lcom/airbnb/lottie/LottieAnimationView;->a(Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private setCompositionTask(Le/d/a/n;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Le/d/a/n<",
|
|
"Le/d/a/d;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->o:Le/d/a/d;
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
invoke-virtual {v0}, Le/d/a/f;->b()V
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieAnimationView;->b()V
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->d:Le/d/a/h;
|
|
|
|
invoke-virtual {p1, v0}, Le/d/a/n;->b(Le/d/a/h;)Le/d/a/n;
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->e:Le/d/a/h;
|
|
|
|
invoke-virtual {p1, v0}, Le/d/a/n;->a(Le/d/a/h;)Le/d/a/n;
|
|
|
|
iput-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->n:Le/d/a/n;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()V
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/MainThread;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-boolean v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->i:Z
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
iget-object v1, v0, Le/d/a/f;->i:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v1}, Ljava/util/ArrayList;->clear()V
|
|
|
|
iget-object v0, v0, Le/d/a/f;->f:Le/d/a/x/d;
|
|
|
|
invoke-virtual {v0}, Le/d/a/x/d;->cancel()V
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieAnimationView;->c()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(II)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
invoke-virtual {v0, p1, p2}, Le/d/a/f;->a(II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
iget-object v0, v0, Le/d/a/f;->f:Le/d/a/x/d;
|
|
|
|
iget-object v0, v0, Le/d/a/x/a;->d:Ljava/util/Set;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(Landroid/util/AttributeSet;)V
|
|
.locals 7
|
|
.param p1 # Landroid/util/AttributeSet;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Lcom/airbnb/lottie/R$a;->LottieAnimationView:[I
|
|
|
|
invoke-virtual {v0, p1, v1}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->isInEditMode()Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
sget v0, Lcom/airbnb/lottie/R$a;->LottieAnimationView_lottie_rawRes:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
move-result v0
|
|
|
|
sget v2, Lcom/airbnb/lottie/R$a;->LottieAnimationView_lottie_fileName:I
|
|
|
|
invoke-virtual {p1, v2}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
move-result v2
|
|
|
|
sget v3, Lcom/airbnb/lottie/R$a;->LottieAnimationView_lottie_url:I
|
|
|
|
invoke-virtual {p1, v3}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v0, "lottie_rawRes and lottie_fileName cannot be used at the same time. Please use only one at once."
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
if-eqz v0, :cond_2
|
|
|
|
sget v0, Lcom/airbnb/lottie/R$a;->LottieAnimationView_lottie_rawRes:I
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
invoke-virtual {p0, v0}, Lcom/airbnb/lottie/LottieAnimationView;->setAnimation(I)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
if-eqz v2, :cond_3
|
|
|
|
sget v0, Lcom/airbnb/lottie/R$a;->LottieAnimationView_lottie_fileName:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
invoke-virtual {p0, v0}, Lcom/airbnb/lottie/LottieAnimationView;->setAnimation(Ljava/lang/String;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
if-eqz v3, :cond_4
|
|
|
|
sget v0, Lcom/airbnb/lottie/R$a;->LottieAnimationView_lottie_url:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
invoke-virtual {p0, v0}, Lcom/airbnb/lottie/LottieAnimationView;->setAnimationFromUrl(Ljava/lang/String;)V
|
|
|
|
:cond_4
|
|
:goto_1
|
|
sget v0, Lcom/airbnb/lottie/R$a;->LottieAnimationView_lottie_autoPlay:I
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
iput-boolean v2, p0, Lcom/airbnb/lottie/LottieAnimationView;->j:Z
|
|
|
|
iput-boolean v2, p0, Lcom/airbnb/lottie/LottieAnimationView;->k:Z
|
|
|
|
:cond_5
|
|
sget v0, Lcom/airbnb/lottie/R$a;->LottieAnimationView_lottie_loop:I
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v3, -0x1
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
iget-object v0, v0, Le/d/a/f;->f:Le/d/a/x/d;
|
|
|
|
invoke-virtual {v0, v3}, Landroid/animation/ValueAnimator;->setRepeatCount(I)V
|
|
|
|
:cond_6
|
|
sget v0, Lcom/airbnb/lottie/R$a;->LottieAnimationView_lottie_repeatMode:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
sget v0, Lcom/airbnb/lottie/R$a;->LottieAnimationView_lottie_repeatMode:I
|
|
|
|
invoke-virtual {p1, v0, v2}, Landroid/content/res/TypedArray;->getInt(II)I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p0, v0}, Lcom/airbnb/lottie/LottieAnimationView;->setRepeatMode(I)V
|
|
|
|
:cond_7
|
|
sget v0, Lcom/airbnb/lottie/R$a;->LottieAnimationView_lottie_repeatCount:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_8
|
|
|
|
sget v0, Lcom/airbnb/lottie/R$a;->LottieAnimationView_lottie_repeatCount:I
|
|
|
|
invoke-virtual {p1, v0, v3}, Landroid/content/res/TypedArray;->getInt(II)I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p0, v0}, Lcom/airbnb/lottie/LottieAnimationView;->setRepeatCount(I)V
|
|
|
|
:cond_8
|
|
sget v0, Lcom/airbnb/lottie/R$a;->LottieAnimationView_lottie_speed:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
move-result v0
|
|
|
|
const/high16 v3, 0x3f800000 # 1.0f
|
|
|
|
if-eqz v0, :cond_9
|
|
|
|
sget v0, Lcom/airbnb/lottie/R$a;->LottieAnimationView_lottie_speed:I
|
|
|
|
invoke-virtual {p1, v0, v3}, Landroid/content/res/TypedArray;->getFloat(IF)F
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p0, v0}, Lcom/airbnb/lottie/LottieAnimationView;->setSpeed(F)V
|
|
|
|
:cond_9
|
|
sget v0, Lcom/airbnb/lottie/R$a;->LottieAnimationView_lottie_imageAssetsFolder:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0, v0}, Lcom/airbnb/lottie/LottieAnimationView;->setImageAssetsFolder(Ljava/lang/String;)V
|
|
|
|
sget v0, Lcom/airbnb/lottie/R$a;->LottieAnimationView_lottie_progress:I
|
|
|
|
const/4 v4, 0x0
|
|
|
|
invoke-virtual {p1, v0, v4}, Landroid/content/res/TypedArray;->getFloat(IF)F
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p0, v0}, Lcom/airbnb/lottie/LottieAnimationView;->setProgress(F)V
|
|
|
|
sget v0, Lcom/airbnb/lottie/R$a;->LottieAnimationView_lottie_enableMergePathsForKitKatAndAbove:I
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p0, v0}, Lcom/airbnb/lottie/LottieAnimationView;->a(Z)V
|
|
|
|
sget v0, Lcom/airbnb/lottie/R$a;->LottieAnimationView_lottie_colorFilter:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_a
|
|
|
|
new-instance v0, Le/d/a/q;
|
|
|
|
sget v5, Lcom/airbnb/lottie/R$a;->LottieAnimationView_lottie_colorFilter:I
|
|
|
|
invoke-virtual {p1, v5, v1}, Landroid/content/res/TypedArray;->getColor(II)I
|
|
|
|
move-result v5
|
|
|
|
invoke-direct {v0, v5}, Le/d/a/q;-><init>(I)V
|
|
|
|
new-instance v5, Le/d/a/u/e;
|
|
|
|
const-string v6, "**"
|
|
|
|
filled-new-array {v6}, [Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-direct {v5, v6}, Le/d/a/u/e;-><init>([Ljava/lang/String;)V
|
|
|
|
new-instance v6, Le/d/a/y/c;
|
|
|
|
invoke-direct {v6, v0}, Le/d/a/y/c;-><init>(Ljava/lang/Object;)V
|
|
|
|
sget-object v0, Le/d/a/k;->B:Landroid/graphics/ColorFilter;
|
|
|
|
invoke-virtual {p0, v5, v0, v6}, Lcom/airbnb/lottie/LottieAnimationView;->a(Le/d/a/u/e;Ljava/lang/Object;Le/d/a/y/c;)V
|
|
|
|
:cond_a
|
|
sget v0, Lcom/airbnb/lottie/R$a;->LottieAnimationView_lottie_scale:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_b
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
sget v5, Lcom/airbnb/lottie/R$a;->LottieAnimationView_lottie_scale:I
|
|
|
|
invoke-virtual {p1, v5, v3}, Landroid/content/res/TypedArray;->getFloat(IF)F
|
|
|
|
move-result v3
|
|
|
|
iput v3, v0, Le/d/a/f;->g:F
|
|
|
|
invoke-virtual {v0}, Le/d/a/f;->h()V
|
|
|
|
:cond_b
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
iget-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Le/d/a/x/g;->a(Landroid/content/Context;)F
|
|
|
|
move-result v0
|
|
|
|
cmpl-float v0, v0, v4
|
|
|
|
if-eqz v0, :cond_c
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:cond_c
|
|
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Le/d/a/f;->a(Ljava/lang/Boolean;)V
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieAnimationView;->c()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Le/d/a/u/e;Ljava/lang/Object;Le/d/a/y/c;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Le/d/a/u/e;",
|
|
"TT;",
|
|
"Le/d/a/y/c<",
|
|
"TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
invoke-virtual {v0, p1, p2, p3}, Le/d/a/f;->a(Le/d/a/u/e;Ljava/lang/Object;Le/d/a/y/c;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Le/d/a/w/h0/c;Ljava/lang/String;)V
|
|
.locals 0
|
|
.param p2 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-static {p1, p2}, Le/d/a/e;->a(Le/d/a/w/h0/c;Ljava/lang/String;)Le/d/a/n;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Lcom/airbnb/lottie/LottieAnimationView;->setCompositionTask(Le/d/a/n;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Ljava/lang/String;Ljava/lang/String;)V
|
|
.locals 1
|
|
.param p2 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
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
|
|
|
|
invoke-static {v0}, Le/o/a/j/a;->a(Ljava/io/InputStream;)Lc0/w;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Le/o/a/j/a;->a(Lc0/w;)Lc0/g;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Le/d/a/w/h0/c;->a(Lc0/g;)Le/d/a/w/h0/c;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/airbnb/lottie/LottieAnimationView;->a(Le/d/a/w/h0/c;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Z)V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
iget-boolean v1, v0, Le/d/a/f;->m:Z
|
|
|
|
if-ne v1, p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
iput-boolean p1, v0, Le/d/a/f;->m:Z
|
|
|
|
iget-object p1, v0, Le/d/a/f;->e:Le/d/a/d;
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
invoke-virtual {v0}, Le/d/a/f;->a()V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final b()V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->n:Le/d/a/n;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v1, p0, Lcom/airbnb/lottie/LottieAnimationView;->d:Le/d/a/h;
|
|
|
|
invoke-virtual {v0, v1}, Le/d/a/n;->d(Le/d/a/h;)Le/d/a/n;
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->n:Le/d/a/n;
|
|
|
|
iget-object v1, p0, Lcom/airbnb/lottie/LottieAnimationView;->e:Le/d/a/h;
|
|
|
|
invoke-virtual {v0, v1}, Le/d/a/n;->c(Le/d/a/h;)Le/d/a/n;
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public b(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
iget-object v0, v0, Le/d/a/f;->f:Le/d/a/x/d;
|
|
|
|
iget-object v0, v0, Le/d/a/x/a;->d:Ljava/util/Set;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public buildDrawingCache(Z)V
|
|
.locals 2
|
|
|
|
invoke-super {p0, p1}, Landroid/widget/ImageView;->buildDrawingCache(Z)V
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->getLayerType()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
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, Le/d/a/p;->e:Le/d/a/p;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/airbnb/lottie/LottieAnimationView;->setRenderMode(Le/d/a/p;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final c()V
|
|
.locals 6
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->l:Le/d/a/p;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x2
|
|
|
|
const/4 v3, 0x1
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
if-eq v0, v3, :cond_1
|
|
|
|
if-eq v0, v2, :cond_0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_0
|
|
invoke-virtual {p0, v3, v1}, Landroid/widget/ImageView;->setLayerType(ILandroid/graphics/Paint;)V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
invoke-virtual {p0, v2, v1}, Landroid/widget/ImageView;->setLayerType(ILandroid/graphics/Paint;)V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->o:Le/d/a/d;
|
|
|
|
const/4 v4, 0x0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
iget-boolean v0, v0, Le/d/a/d;->n:Z
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v5, 0x1c
|
|
|
|
if-ge v0, v5, :cond_3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->o:Le/d/a/d;
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
iget v0, v0, Le/d/a/d;->o:I
|
|
|
|
const/4 v5, 0x4
|
|
|
|
if-le v0, v5, :cond_4
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
const/4 v4, 0x1
|
|
|
|
:goto_0
|
|
if-eqz v4, :cond_5
|
|
|
|
goto :goto_1
|
|
|
|
:cond_5
|
|
const/4 v2, 0x1
|
|
|
|
:goto_1
|
|
invoke-virtual {p0, v2, v1}, Landroid/widget/ImageView;->setLayerType(ILandroid/graphics/Paint;)V
|
|
|
|
:goto_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public d()Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
iget-object v0, v0, Le/d/a/f;->f:Le/d/a/x/d;
|
|
|
|
iget-boolean v0, v0, Le/d/a/x/d;->n:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public e()V
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/MainThread;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-boolean v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->k:Z
|
|
|
|
iput-boolean v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->j:Z
|
|
|
|
iput-boolean v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->i:Z
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
iget-object v1, v0, Le/d/a/f;->i:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v1}, Ljava/util/ArrayList;->clear()V
|
|
|
|
iget-object v0, v0, Le/d/a/f;->f:Le/d/a/x/d;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-virtual {v0, v1}, Le/d/a/x/d;->b(Z)V
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieAnimationView;->c()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public f()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;->f:Le/d/a/f;
|
|
|
|
invoke-virtual {v0}, Le/d/a/f;->f()V
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieAnimationView;->c()V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->i:Z
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public g()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;->f:Le/d/a/f;
|
|
|
|
invoke-virtual {v0}, Le/d/a/f;->g()V
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieAnimationView;->c()V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->i:Z
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public getComposition()Le/d/a/d;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->o:Le/d/a/d;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getDuration()J
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->o:Le/d/a/d;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Le/d/a/d;->a()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;->f:Le/d/a/f;
|
|
|
|
iget-object v0, v0, Le/d/a/f;->f:Le/d/a/x/d;
|
|
|
|
iget v0, v0, Le/d/a/x/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;->f:Le/d/a/f;
|
|
|
|
iget-object v0, v0, Le/d/a/f;->k:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getMaxFrame()F
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
iget-object v0, v0, Le/d/a/f;->f:Le/d/a/x/d;
|
|
|
|
invoke-virtual {v0}, Le/d/a/x/d;->c()F
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getMinFrame()F
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
iget-object v0, v0, Le/d/a/f;->f:Le/d/a/x/d;
|
|
|
|
invoke-virtual {v0}, Le/d/a/x/d;->d()F
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getPerformanceTracker()Le/d/a/o;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
iget-object v0, v0, Le/d/a/f;->e:Le/d/a/d;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Le/d/a/d;->c()Le/d/a/o;
|
|
|
|
move-result-object v0
|
|
|
|
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;->f:Le/d/a/f;
|
|
|
|
invoke-virtual {v0}, Le/d/a/f;->c()F
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getRepeatCount()I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
invoke-virtual {v0}, Le/d/a/f;->d()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getRepeatMode()I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
iget-object v0, v0, Le/d/a/f;->f:Le/d/a/x/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;->f:Le/d/a/f;
|
|
|
|
iget v0, v0, Le/d/a/f;->g:F
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getSpeed()F
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
iget-object v0, v0, Le/d/a/f;->f:Le/d/a/x/d;
|
|
|
|
iget v0, v0, Le/d/a/x/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;->f:Le/d/a/f;
|
|
|
|
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;->k:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-boolean v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->j:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieAnimationView;->f()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-boolean v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->k: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 1
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieAnimationView;->d()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieAnimationView;->a()V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->j: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;->g:Ljava/lang/String;
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->g: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;->g: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;->h:I
|
|
|
|
iget v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h: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;->f()V
|
|
|
|
:cond_3
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
iget-object v1, p1, Lcom/airbnb/lottie/LottieAnimationView$SavedState;->h:Ljava/lang/String;
|
|
|
|
iput-object v1, v0, Le/d/a/f;->k: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 4
|
|
|
|
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;->g:Ljava/lang/String;
|
|
|
|
iput-object v0, v1, Lcom/airbnb/lottie/LottieAnimationView$SavedState;->d:Ljava/lang/String;
|
|
|
|
iget v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:I
|
|
|
|
iput v0, v1, Lcom/airbnb/lottie/LottieAnimationView$SavedState;->e:I
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
invoke-virtual {v0}, Le/d/a/f;->c()F
|
|
|
|
move-result v0
|
|
|
|
iput v0, v1, Lcom/airbnb/lottie/LottieAnimationView$SavedState;->f:F
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
iget-object v2, v0, Le/d/a/f;->f:Le/d/a/x/d;
|
|
|
|
iget-boolean v3, v2, Le/d/a/x/d;->n:Z
|
|
|
|
iput-boolean v3, v1, Lcom/airbnb/lottie/LottieAnimationView$SavedState;->g:Z
|
|
|
|
iget-object v0, v0, Le/d/a/f;->k:Ljava/lang/String;
|
|
|
|
iput-object v0, v1, Lcom/airbnb/lottie/LottieAnimationView$SavedState;->h:Ljava/lang/String;
|
|
|
|
invoke-virtual {v2}, 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;->f:Le/d/a/f;
|
|
|
|
invoke-virtual {v0}, Le/d/a/f;->d()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 0
|
|
.param p1 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->isShown()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
iget-boolean p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->i:Z
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieAnimationView;->g()V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
iput-boolean p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->i:Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieAnimationView;->d()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieAnimationView;->e()V
|
|
|
|
const/4 p1, 0x1
|
|
|
|
iput-boolean p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->i:Z
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setAnimation(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/RawRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
iput p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:I
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->g:Ljava/lang/String;
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0, p1}, Le/d/a/e;->a(Landroid/content/Context;I)Le/d/a/n;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Lcom/airbnb/lottie/LottieAnimationView;->setCompositionTask(Le/d/a/n;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setAnimation(Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
iput-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->g:Ljava/lang/String;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->h:I
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0, p1}, Le/d/a/e;->a(Landroid/content/Context;Ljava/lang/String;)Le/d/a/n;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Lcom/airbnb/lottie/LottieAnimationView;->setCompositionTask(Le/d/a/n;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setAnimationFromJson(Ljava/lang/String;)V
|
|
.locals 1
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {p0, p1, v0}, Lcom/airbnb/lottie/LottieAnimationView;->a(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setAnimationFromUrl(Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0, p1}, Le/d/a/e;->c(Landroid/content/Context;Ljava/lang/String;)Le/d/a/n;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Lcom/airbnb/lottie/LottieAnimationView;->setCompositionTask(Le/d/a/n;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setComposition(Le/d/a/d;)V
|
|
.locals 6
|
|
.param p1 # Le/d/a/d;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
invoke-virtual {v0, p0}, Landroid/graphics/drawable/Drawable;->setCallback(Landroid/graphics/drawable/Drawable$Callback;)V
|
|
|
|
iput-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->o:Le/d/a/d;
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
iget-object v1, v0, Le/d/a/f;->e:Le/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, Le/d/a/f;->q:Z
|
|
|
|
invoke-virtual {v0}, Le/d/a/f;->b()V
|
|
|
|
iput-object p1, v0, Le/d/a/f;->e:Le/d/a/d;
|
|
|
|
invoke-virtual {v0}, Le/d/a/f;->a()V
|
|
|
|
iget-object v1, v0, Le/d/a/f;->f:Le/d/a/x/d;
|
|
|
|
iget-object v4, v1, Le/d/a/x/d;->m:Le/d/a/d;
|
|
|
|
if-nez v4, :cond_1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
:cond_1
|
|
iput-object p1, v1, Le/d/a/x/d;->m:Le/d/a/d;
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
iget v2, v1, Le/d/a/x/d;->k:F
|
|
|
|
iget v4, p1, Le/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, Le/d/a/x/d;->l:F
|
|
|
|
iget v5, p1, Le/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}, Le/d/a/x/d;->a(FF)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
iget v2, p1, Le/d/a/d;->k:F
|
|
|
|
float-to-int v2, v2
|
|
|
|
int-to-float v2, v2
|
|
|
|
iget v4, p1, Le/d/a/d;->l:F
|
|
|
|
float-to-int v4, v4
|
|
|
|
int-to-float v4, v4
|
|
|
|
invoke-virtual {v1, v2, v4}, Le/d/a/x/d;->a(FF)V
|
|
|
|
:goto_0
|
|
iget v2, v1, Le/d/a/x/d;->i:F
|
|
|
|
const/4 v4, 0x0
|
|
|
|
iput v4, v1, Le/d/a/x/d;->i:F
|
|
|
|
float-to-int v2, v2
|
|
|
|
invoke-virtual {v1, v2}, Le/d/a/x/d;->a(I)V
|
|
|
|
iget-object v1, v0, Le/d/a/f;->f:Le/d/a/x/d;
|
|
|
|
invoke-virtual {v1}, Le/d/a/x/d;->getAnimatedFraction()F
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0, v1}, Le/d/a/f;->c(F)V
|
|
|
|
iget v1, v0, Le/d/a/f;->g:F
|
|
|
|
iput v1, v0, Le/d/a/f;->g:F
|
|
|
|
invoke-virtual {v0}, Le/d/a/f;->h()V
|
|
|
|
invoke-virtual {v0}, Le/d/a/f;->h()V
|
|
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
iget-object v2, v0, Le/d/a/f;->i: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, Le/d/a/f$o;
|
|
|
|
invoke-interface {v2, p1}, Le/d/a/f$o;->a(Le/d/a/d;)V
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->remove()V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
iget-object v1, v0, Le/d/a/f;->i:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v1}, Ljava/util/ArrayList;->clear()V
|
|
|
|
iget-boolean v0, v0, Le/d/a/f;->p:Z
|
|
|
|
invoke-virtual {p1, v0}, Le/d/a/d;->a(Z)V
|
|
|
|
const/4 v2, 0x1
|
|
|
|
:goto_2
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieAnimationView;->c()V
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
if-ne v0, v1, :cond_4
|
|
|
|
if-nez v2, :cond_4
|
|
|
|
return-void
|
|
|
|
:cond_4
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {p0, v0}, Lcom/airbnb/lottie/LottieAnimationView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
invoke-virtual {p0, v0}, Lcom/airbnb/lottie/LottieAnimationView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
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;->m: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_5
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Le/d/a/j;
|
|
|
|
invoke-interface {v1, p1}, Le/d/a/j;->a(Le/d/a/d;)V
|
|
|
|
goto :goto_3
|
|
|
|
:cond_5
|
|
return-void
|
|
.end method
|
|
|
|
.method public setFontAssetDelegate(Le/d/a/a;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
iget-object v0, v0, Le/d/a/f;->l:Le/d/a/t/a;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0, p1}, Le/d/a/t/a;->a(Le/d/a/a;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setFrame(I)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
invoke-virtual {v0, p1}, Le/d/a/f;->a(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setImageAssetDelegate(Le/d/a/b;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
iget-object v0, v0, Le/d/a/f;->j:Le/d/a/t/b;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0, p1}, Le/d/a/t/b;->a(Le/d/a/b;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setImageAssetsFolder(Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
iput-object p1, v0, Le/d/a/f;->k:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setImageBitmap(Landroid/graphics/Bitmap;)V
|
|
.locals 0
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieAnimationView;->b()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;->b()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;->b()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;->f:Le/d/a/f;
|
|
|
|
invoke-virtual {v0, p1}, Le/d/a/f;->b(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setMaxFrame(Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
invoke-virtual {v0, p1}, Le/d/a/f;->a(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;->f:Le/d/a/f;
|
|
|
|
invoke-virtual {v0, p1}, Le/d/a/f;->a(F)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setMinAndMaxFrame(Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
invoke-virtual {v0, p1}, Le/d/a/f;->b(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setMinFrame(I)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
invoke-virtual {v0, p1}, Le/d/a/f;->c(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setMinFrame(Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
invoke-virtual {v0, p1}, Le/d/a/f;->c(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setMinProgress(F)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
invoke-virtual {v0, p1}, Le/d/a/f;->b(F)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setPerformanceTrackingEnabled(Z)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
iput-boolean p1, v0, Le/d/a/f;->p:Z
|
|
|
|
iget-object v0, v0, Le/d/a/f;->e:Le/d/a/d;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0, p1}, Le/d/a/d;->a(Z)V
|
|
|
|
: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;->f:Le/d/a/f;
|
|
|
|
invoke-virtual {v0, p1}, Le/d/a/f;->c(F)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setRenderMode(Le/d/a/p;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/airbnb/lottie/LottieAnimationView;->l:Le/d/a/p;
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieAnimationView;->c()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setRepeatCount(I)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
iget-object v0, v0, Le/d/a/f;->f:Le/d/a/x/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;->f:Le/d/a/f;
|
|
|
|
iget-object v0, v0, Le/d/a/f;->f:Le/d/a/x/d;
|
|
|
|
invoke-virtual {v0, p1}, Le/d/a/x/d;->setRepeatMode(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setScale(F)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
iput p1, v0, Le/d/a/f;->g:F
|
|
|
|
invoke-virtual {v0}, Le/d/a/f;->h()V
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
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;->f:Le/d/a/f;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/airbnb/lottie/LottieAnimationView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSpeed(F)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
iget-object v0, v0, Le/d/a/f;->f:Le/d/a/x/d;
|
|
|
|
invoke-virtual {v0, p1}, Le/d/a/x/d;->a(F)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTextDelegate(Le/d/a/r;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/LottieAnimationView;->f:Le/d/a/f;
|
|
|
|
invoke-virtual {v0, p1}, Le/d/a/f;->a(Le/d/a/r;)V
|
|
|
|
return-void
|
|
.end method
|