1714 lines
40 KiB
Smali
1714 lines
40 KiB
Smali
.class public Lcom/airbnb/lottie/f;
|
|
.super Landroid/graphics/drawable/Drawable;
|
|
.source "LottieDrawable.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/graphics/drawable/Animatable;
|
|
.implements Landroid/graphics/drawable/Drawable$Callback;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/airbnb/lottie/f$a;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final TAG:Ljava/lang/String; = "f"
|
|
|
|
|
|
# instance fields
|
|
.field private alpha:I
|
|
|
|
.field fD:Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public fz:Lcom/airbnb/lottie/d;
|
|
|
|
.field final gb:Lcom/airbnb/lottie/f/e;
|
|
|
|
.field private gc:Z
|
|
|
|
.field private final gd:Ljava/util/Set;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Set<",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field final ge:Ljava/util/ArrayList;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/ArrayList<",
|
|
"Lcom/airbnb/lottie/f$a;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field gf:Lcom/airbnb/lottie/b/b;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field gg:Lcom/airbnb/lottie/b;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public gh:Lcom/airbnb/lottie/b/a;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public gi:Lcom/airbnb/lottie/a;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public gj:Lcom/airbnb/lottie/p;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public gk:Z
|
|
|
|
.field private gl:Lcom/airbnb/lottie/c/c/b;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field gm:Z
|
|
|
|
.field private isDirty:Z
|
|
|
|
.field private final matrix:Landroid/graphics/Matrix;
|
|
|
|
.field scale:F
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 2
|
|
|
|
invoke-direct {p0}, Landroid/graphics/drawable/Drawable;-><init>()V
|
|
|
|
new-instance v0, Landroid/graphics/Matrix;
|
|
|
|
invoke-direct {v0}, Landroid/graphics/Matrix;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/airbnb/lottie/f;->matrix:Landroid/graphics/Matrix;
|
|
|
|
new-instance v0, Lcom/airbnb/lottie/f/e;
|
|
|
|
invoke-direct {v0}, Lcom/airbnb/lottie/f/e;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/airbnb/lottie/f;->gb:Lcom/airbnb/lottie/f/e;
|
|
|
|
const/high16 v0, 0x3f800000 # 1.0f
|
|
|
|
iput v0, p0, Lcom/airbnb/lottie/f;->scale:F
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Lcom/airbnb/lottie/f;->gc:Z
|
|
|
|
new-instance v0, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/airbnb/lottie/f;->gd:Ljava/util/Set;
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/airbnb/lottie/f;->ge:Ljava/util/ArrayList;
|
|
|
|
const/16 v0, 0xff
|
|
|
|
iput v0, p0, Lcom/airbnb/lottie/f;->alpha:I
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-boolean v0, p0, Lcom/airbnb/lottie/f;->isDirty:Z
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gb:Lcom/airbnb/lottie/f/e;
|
|
|
|
new-instance v1, Lcom/airbnb/lottie/f$1;
|
|
|
|
invoke-direct {v1, p0}, Lcom/airbnb/lottie/f$1;-><init>(Lcom/airbnb/lottie/f;)V
|
|
|
|
invoke-virtual {v0, v1}, Lcom/airbnb/lottie/f/e;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/airbnb/lottie/f;)Lcom/airbnb/lottie/c/c/b;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lcom/airbnb/lottie/f;->gl:Lcom/airbnb/lottie/c/c/b;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private a(Lcom/airbnb/lottie/c/e;)Ljava/util/List;
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/airbnb/lottie/c/e;",
|
|
")",
|
|
"Ljava/util/List<",
|
|
"Lcom/airbnb/lottie/c/e;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gl:Lcom/airbnb/lottie/c/c/b;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const-string p1, "Cannot resolve KeyPath. Composition is not set yet."
|
|
|
|
invoke-static {p1}, Lcom/airbnb/lottie/f/d;->warning(Ljava/lang/String;)V
|
|
|
|
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iget-object v1, p0, Lcom/airbnb/lottie/f;->gl:Lcom/airbnb/lottie/c/c/b;
|
|
|
|
new-instance v2, Lcom/airbnb/lottie/c/e;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
new-array v4, v3, [Ljava/lang/String;
|
|
|
|
invoke-direct {v2, v4}, Lcom/airbnb/lottie/c/e;-><init>([Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v1, p1, v3, v0, v2}, Lcom/airbnb/lottie/c/c/b;->a(Lcom/airbnb/lottie/c/e;ILjava/util/List;Lcom/airbnb/lottie/c/e;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private aR()V
|
|
.locals 4
|
|
|
|
new-instance v0, Lcom/airbnb/lottie/c/c/b;
|
|
|
|
iget-object v1, p0, Lcom/airbnb/lottie/f;->fz:Lcom/airbnb/lottie/d;
|
|
|
|
invoke-static {v1}, Lcom/airbnb/lottie/e/s;->b(Lcom/airbnb/lottie/d;)Lcom/airbnb/lottie/c/c/d;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Lcom/airbnb/lottie/f;->fz:Lcom/airbnb/lottie/d;
|
|
|
|
iget-object v2, v2, Lcom/airbnb/lottie/d;->fM:Ljava/util/List;
|
|
|
|
iget-object v3, p0, Lcom/airbnb/lottie/f;->fz:Lcom/airbnb/lottie/d;
|
|
|
|
invoke-direct {v0, p0, v1, v2, v3}, Lcom/airbnb/lottie/c/c/b;-><init>(Lcom/airbnb/lottie/f;Lcom/airbnb/lottie/c/c/d;Ljava/util/List;Lcom/airbnb/lottie/d;)V
|
|
|
|
iput-object v0, p0, Lcom/airbnb/lottie/f;->gl:Lcom/airbnb/lottie/c/c/b;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private aV()V
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->fz:Lcom/airbnb/lottie/d;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget v1, p0, Lcom/airbnb/lottie/f;->scale:F
|
|
|
|
iget-object v0, v0, Lcom/airbnb/lottie/d;->fN:Landroid/graphics/Rect;
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/Rect;->width()I
|
|
|
|
move-result v0
|
|
|
|
int-to-float v0, v0
|
|
|
|
mul-float v0, v0, v1
|
|
|
|
float-to-int v0, v0
|
|
|
|
iget-object v2, p0, Lcom/airbnb/lottie/f;->fz:Lcom/airbnb/lottie/d;
|
|
|
|
iget-object v2, v2, Lcom/airbnb/lottie/d;->fN:Landroid/graphics/Rect;
|
|
|
|
invoke-virtual {v2}, Landroid/graphics/Rect;->height()I
|
|
|
|
move-result v2
|
|
|
|
int-to-float v2, v2
|
|
|
|
mul-float v2, v2, v1
|
|
|
|
float-to-int v1, v2
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {p0, v2, v2, v0, v1}, Lcom/airbnb/lottie/f;->setBounds(IIII)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/airbnb/lottie/f;)Lcom/airbnb/lottie/f/e;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lcom/airbnb/lottie/f;->gb:Lcom/airbnb/lottie/f/e;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(II)V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->fz:Lcom/airbnb/lottie/d;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->ge:Ljava/util/ArrayList;
|
|
|
|
new-instance v1, Lcom/airbnb/lottie/f$3;
|
|
|
|
invoke-direct {v1, p0, p1, p2}, Lcom/airbnb/lottie/f$3;-><init>(Lcom/airbnb/lottie/f;II)V
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gb:Lcom/airbnb/lottie/f/e;
|
|
|
|
int-to-float p1, p1
|
|
|
|
int-to-float p2, p2
|
|
|
|
const v1, 0x3f7d70a4 # 0.99f
|
|
|
|
add-float/2addr p2, v1
|
|
|
|
invoke-virtual {v0, p1, p2}, Lcom/airbnb/lottie/f/e;->a(FF)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(Lcom/airbnb/lottie/c/e;Ljava/lang/Object;Lcom/airbnb/lottie/g/c;)V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lcom/airbnb/lottie/c/e;",
|
|
"TT;",
|
|
"Lcom/airbnb/lottie/g/c<",
|
|
"TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gl:Lcom/airbnb/lottie/c/c/b;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->ge:Ljava/util/ArrayList;
|
|
|
|
new-instance v1, Lcom/airbnb/lottie/f$6;
|
|
|
|
invoke-direct {v1, p0, p1, p2, p3}, Lcom/airbnb/lottie/f$6;-><init>(Lcom/airbnb/lottie/f;Lcom/airbnb/lottie/c/e;Ljava/lang/Object;Lcom/airbnb/lottie/g/c;)V
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v0, p1, Lcom/airbnb/lottie/c/e;->jP:Lcom/airbnb/lottie/c/f;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object p1, p1, Lcom/airbnb/lottie/c/e;->jP:Lcom/airbnb/lottie/c/f;
|
|
|
|
invoke-interface {p1, p2, p3}, Lcom/airbnb/lottie/c/f;->a(Ljava/lang/Object;Lcom/airbnb/lottie/g/c;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
invoke-direct {p0, p1}, Lcom/airbnb/lottie/f;->a(Lcom/airbnb/lottie/c/e;)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
move-result v3
|
|
|
|
if-ge v0, v3, :cond_2
|
|
|
|
invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Lcom/airbnb/lottie/c/e;
|
|
|
|
iget-object v3, v3, Lcom/airbnb/lottie/c/e;->jP:Lcom/airbnb/lottie/c/f;
|
|
|
|
invoke-interface {v3, p2, p3}, Lcom/airbnb/lottie/c/f;->a(Ljava/lang/Object;Lcom/airbnb/lottie/g/c;)V
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
invoke-interface {p1}, Ljava/util/List;->isEmpty()Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
const/4 v2, 0x0
|
|
|
|
:goto_1
|
|
if-eqz v2, :cond_4
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/f;->invalidateSelf()V
|
|
|
|
sget-object p1, Lcom/airbnb/lottie/j;->hb:Ljava/lang/Float;
|
|
|
|
if-ne p2, p1, :cond_4
|
|
|
|
iget-object p1, p0, Lcom/airbnb/lottie/f;->gb:Lcom/airbnb/lottie/f/e;
|
|
|
|
invoke-virtual {p1}, Lcom/airbnb/lottie/f/e;->bG()F
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/airbnb/lottie/f;->setProgress(F)V
|
|
|
|
:cond_4
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(Lcom/airbnb/lottie/d;)Z
|
|
.locals 5
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->fz:Lcom/airbnb/lottie/d;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-ne v0, p1, :cond_0
|
|
|
|
return v1
|
|
|
|
:cond_0
|
|
iput-boolean v1, p0, Lcom/airbnb/lottie/f;->isDirty:Z
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/f;->aS()V
|
|
|
|
iput-object p1, p0, Lcom/airbnb/lottie/f;->fz:Lcom/airbnb/lottie/d;
|
|
|
|
invoke-direct {p0}, Lcom/airbnb/lottie/f;->aR()V
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gb:Lcom/airbnb/lottie/f/e;
|
|
|
|
iget-object v2, v0, Lcom/airbnb/lottie/f/e;->fz:Lcom/airbnb/lottie/d;
|
|
|
|
const/4 v3, 0x1
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:cond_1
|
|
iput-object p1, v0, Lcom/airbnb/lottie/f/e;->fz:Lcom/airbnb/lottie/d;
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
iget v1, v0, Lcom/airbnb/lottie/f/e;->nS:F
|
|
|
|
iget v2, p1, Lcom/airbnb/lottie/d;->fO:F
|
|
|
|
invoke-static {v1, v2}, Ljava/lang/Math;->max(FF)F
|
|
|
|
move-result v1
|
|
|
|
float-to-int v1, v1
|
|
|
|
int-to-float v1, v1
|
|
|
|
iget v2, v0, Lcom/airbnb/lottie/f/e;->nT:F
|
|
|
|
iget v4, p1, Lcom/airbnb/lottie/d;->fP:F
|
|
|
|
invoke-static {v2, v4}, Ljava/lang/Math;->min(FF)F
|
|
|
|
move-result v2
|
|
|
|
float-to-int v2, v2
|
|
|
|
int-to-float v2, v2
|
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/airbnb/lottie/f/e;->a(FF)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
iget v1, p1, Lcom/airbnb/lottie/d;->fO:F
|
|
|
|
float-to-int v1, v1
|
|
|
|
int-to-float v1, v1
|
|
|
|
iget v2, p1, Lcom/airbnb/lottie/d;->fP:F
|
|
|
|
float-to-int v2, v2
|
|
|
|
int-to-float v2, v2
|
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/airbnb/lottie/f/e;->a(FF)V
|
|
|
|
:goto_0
|
|
iget v1, v0, Lcom/airbnb/lottie/f/e;->nR:F
|
|
|
|
const/4 v2, 0x0
|
|
|
|
iput v2, v0, Lcom/airbnb/lottie/f/e;->nR:F
|
|
|
|
float-to-int v1, v1
|
|
|
|
invoke-virtual {v0, v1}, Lcom/airbnb/lottie/f/e;->setFrame(I)V
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gb:Lcom/airbnb/lottie/f/e;
|
|
|
|
invoke-virtual {v0}, Lcom/airbnb/lottie/f/e;->getAnimatedFraction()F
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p0, v0}, Lcom/airbnb/lottie/f;->setProgress(F)V
|
|
|
|
iget v0, p0, Lcom/airbnb/lottie/f;->scale:F
|
|
|
|
invoke-virtual {p0, v0}, Lcom/airbnb/lottie/f;->setScale(F)V
|
|
|
|
invoke-direct {p0}, Lcom/airbnb/lottie/f;->aV()V
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
iget-object v1, p0, Lcom/airbnb/lottie/f;->ge:Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
|
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_1
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/airbnb/lottie/f$a;
|
|
|
|
invoke-interface {v1}, Lcom/airbnb/lottie/f$a;->aW()V
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->remove()V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->ge:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
|
|
|
|
iget-boolean v0, p0, Lcom/airbnb/lottie/f;->gm:Z
|
|
|
|
invoke-virtual {p1, v0}, Lcom/airbnb/lottie/d;->setPerformanceTrackingEnabled(Z)V
|
|
|
|
return v3
|
|
.end method
|
|
|
|
.method public final aL()V
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/MainThread;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gl:Lcom/airbnb/lottie/c/c/b;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->ge:Ljava/util/ArrayList;
|
|
|
|
new-instance v1, Lcom/airbnb/lottie/f$7;
|
|
|
|
invoke-direct {v1, p0}, Lcom/airbnb/lottie/f$7;-><init>(Lcom/airbnb/lottie/f;)V
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-boolean v0, p0, Lcom/airbnb/lottie/f;->gc:Z
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gb:Lcom/airbnb/lottie/f/e;
|
|
|
|
invoke-virtual {v0}, Lcom/airbnb/lottie/f/e;->getRepeatCount()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gb:Lcom/airbnb/lottie/f/e;
|
|
|
|
invoke-virtual {v0}, Lcom/airbnb/lottie/f/e;->aL()V
|
|
|
|
:cond_2
|
|
iget-boolean v0, p0, Lcom/airbnb/lottie/f;->gc:Z
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gb:Lcom/airbnb/lottie/f/e;
|
|
|
|
iget v0, v0, Lcom/airbnb/lottie/f/e;->nO:F
|
|
|
|
const/4 v1, 0x0
|
|
|
|
cmpg-float v0, v0, v1
|
|
|
|
if-gez v0, :cond_3
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gb:Lcom/airbnb/lottie/f/e;
|
|
|
|
invoke-virtual {v0}, Lcom/airbnb/lottie/f/e;->getMinFrame()F
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gb:Lcom/airbnb/lottie/f/e;
|
|
|
|
invoke-virtual {v0}, Lcom/airbnb/lottie/f/e;->getMaxFrame()F
|
|
|
|
move-result v0
|
|
|
|
:goto_0
|
|
float-to-int v0, v0
|
|
|
|
invoke-virtual {p0, v0}, Lcom/airbnb/lottie/f;->setFrame(I)V
|
|
|
|
:cond_4
|
|
return-void
|
|
.end method
|
|
|
|
.method public final aM()V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->ge:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gb:Lcom/airbnb/lottie/f/e;
|
|
|
|
invoke-virtual {v0}, Lcom/airbnb/lottie/f/e;->aM()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final aS()V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gb:Lcom/airbnb/lottie/f/e;
|
|
|
|
invoke-virtual {v0}, Lcom/airbnb/lottie/f/e;->isRunning()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gb:Lcom/airbnb/lottie/f/e;
|
|
|
|
invoke-virtual {v0}, Lcom/airbnb/lottie/f/e;->cancel()V
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p0, Lcom/airbnb/lottie/f;->fz:Lcom/airbnb/lottie/d;
|
|
|
|
iput-object v0, p0, Lcom/airbnb/lottie/f;->gl:Lcom/airbnb/lottie/c/c/b;
|
|
|
|
iput-object v0, p0, Lcom/airbnb/lottie/f;->gf:Lcom/airbnb/lottie/b/b;
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gb:Lcom/airbnb/lottie/f/e;
|
|
|
|
invoke-virtual {v0}, Lcom/airbnb/lottie/f/e;->aS()V
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/f;->invalidateSelf()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final aT()V
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/MainThread;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gl:Lcom/airbnb/lottie/c/c/b;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->ge:Ljava/util/ArrayList;
|
|
|
|
new-instance v1, Lcom/airbnb/lottie/f$8;
|
|
|
|
invoke-direct {v1, p0}, Lcom/airbnb/lottie/f$8;-><init>(Lcom/airbnb/lottie/f;)V
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gb:Lcom/airbnb/lottie/f/e;
|
|
|
|
invoke-virtual {v0}, Lcom/airbnb/lottie/f/e;->aT()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final aU()Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gj:Lcom/airbnb/lottie/p;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->fz:Lcom/airbnb/lottie/d;
|
|
|
|
iget-object v0, v0, Lcom/airbnb/lottie/d;->fK:Landroidx/collection/SparseArrayCompat;
|
|
|
|
invoke-virtual {v0}, Landroidx/collection/SparseArrayCompat;->size()I
|
|
|
|
move-result v0
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method final b(Ljava/lang/Boolean;)V
|
|
.locals 0
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
move-result p1
|
|
|
|
iput-boolean p1, p0, Lcom/airbnb/lottie/f;->gc:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public draw(Landroid/graphics/Canvas;)V
|
|
.locals 9
|
|
.param p1 # Landroid/graphics/Canvas;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-boolean v0, p0, Lcom/airbnb/lottie/f;->isDirty:Z
|
|
|
|
const-string v0, "Drawable#draw"
|
|
|
|
invoke-static {v0}, Lcom/airbnb/lottie/c;->beginSection(Ljava/lang/String;)V
|
|
|
|
iget-object v1, p0, Lcom/airbnb/lottie/f;->gl:Lcom/airbnb/lottie/c/c/b;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget v1, p0, Lcom/airbnb/lottie/f;->scale:F
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/Canvas;->getWidth()I
|
|
|
|
move-result v2
|
|
|
|
int-to-float v2, v2
|
|
|
|
iget-object v3, p0, Lcom/airbnb/lottie/f;->fz:Lcom/airbnb/lottie/d;
|
|
|
|
iget-object v3, v3, Lcom/airbnb/lottie/d;->fN:Landroid/graphics/Rect;
|
|
|
|
invoke-virtual {v3}, Landroid/graphics/Rect;->width()I
|
|
|
|
move-result v3
|
|
|
|
int-to-float v3, v3
|
|
|
|
div-float/2addr v2, v3
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/Canvas;->getHeight()I
|
|
|
|
move-result v3
|
|
|
|
int-to-float v3, v3
|
|
|
|
iget-object v4, p0, Lcom/airbnb/lottie/f;->fz:Lcom/airbnb/lottie/d;
|
|
|
|
iget-object v4, v4, Lcom/airbnb/lottie/d;->fN:Landroid/graphics/Rect;
|
|
|
|
invoke-virtual {v4}, Landroid/graphics/Rect;->height()I
|
|
|
|
move-result v4
|
|
|
|
int-to-float v4, v4
|
|
|
|
div-float/2addr v3, v4
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Math;->min(FF)F
|
|
|
|
move-result v2
|
|
|
|
const/high16 v3, 0x3f800000 # 1.0f
|
|
|
|
cmpl-float v4, v1, v2
|
|
|
|
if-lez v4, :cond_1
|
|
|
|
iget v1, p0, Lcom/airbnb/lottie/f;->scale:F
|
|
|
|
div-float/2addr v1, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move v2, v1
|
|
|
|
const/high16 v1, 0x3f800000 # 1.0f
|
|
|
|
:goto_0
|
|
const/4 v4, -0x1
|
|
|
|
cmpl-float v3, v1, v3
|
|
|
|
if-lez v3, :cond_2
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I
|
|
|
|
move-result v4
|
|
|
|
iget-object v3, p0, Lcom/airbnb/lottie/f;->fz:Lcom/airbnb/lottie/d;
|
|
|
|
iget-object v3, v3, Lcom/airbnb/lottie/d;->fN:Landroid/graphics/Rect;
|
|
|
|
invoke-virtual {v3}, Landroid/graphics/Rect;->width()I
|
|
|
|
move-result v3
|
|
|
|
int-to-float v3, v3
|
|
|
|
const/high16 v5, 0x40000000 # 2.0f
|
|
|
|
div-float/2addr v3, v5
|
|
|
|
iget-object v6, p0, Lcom/airbnb/lottie/f;->fz:Lcom/airbnb/lottie/d;
|
|
|
|
iget-object v6, v6, Lcom/airbnb/lottie/d;->fN:Landroid/graphics/Rect;
|
|
|
|
invoke-virtual {v6}, Landroid/graphics/Rect;->height()I
|
|
|
|
move-result v6
|
|
|
|
int-to-float v6, v6
|
|
|
|
div-float/2addr v6, v5
|
|
|
|
mul-float v5, v3, v2
|
|
|
|
mul-float v7, v6, v2
|
|
|
|
iget v8, p0, Lcom/airbnb/lottie/f;->scale:F
|
|
|
|
mul-float v3, v3, v8
|
|
|
|
sub-float/2addr v3, v5
|
|
|
|
mul-float v8, v8, v6
|
|
|
|
sub-float/2addr v8, v7
|
|
|
|
invoke-virtual {p1, v3, v8}, Landroid/graphics/Canvas;->translate(FF)V
|
|
|
|
invoke-virtual {p1, v1, v1, v5, v7}, Landroid/graphics/Canvas;->scale(FFFF)V
|
|
|
|
:cond_2
|
|
iget-object v1, p0, Lcom/airbnb/lottie/f;->matrix:Landroid/graphics/Matrix;
|
|
|
|
invoke-virtual {v1}, Landroid/graphics/Matrix;->reset()V
|
|
|
|
iget-object v1, p0, Lcom/airbnb/lottie/f;->matrix:Landroid/graphics/Matrix;
|
|
|
|
invoke-virtual {v1, v2, v2}, Landroid/graphics/Matrix;->preScale(FF)Z
|
|
|
|
iget-object v1, p0, Lcom/airbnb/lottie/f;->gl:Lcom/airbnb/lottie/c/c/b;
|
|
|
|
iget-object v2, p0, Lcom/airbnb/lottie/f;->matrix:Landroid/graphics/Matrix;
|
|
|
|
iget v3, p0, Lcom/airbnb/lottie/f;->alpha:I
|
|
|
|
invoke-virtual {v1, p1, v2, v3}, Lcom/airbnb/lottie/c/c/b;->a(Landroid/graphics/Canvas;Landroid/graphics/Matrix;I)V
|
|
|
|
invoke-static {v0}, Lcom/airbnb/lottie/c;->q(Ljava/lang/String;)F
|
|
|
|
if-lez v4, :cond_3
|
|
|
|
invoke-virtual {p1, v4}, Landroid/graphics/Canvas;->restoreToCount(I)V
|
|
|
|
:cond_3
|
|
return-void
|
|
.end method
|
|
|
|
.method public getAlpha()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/airbnb/lottie/f;->alpha:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getIntrinsicHeight()I
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->fz:Lcom/airbnb/lottie/d;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, -0x1
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
iget-object v0, v0, Lcom/airbnb/lottie/d;->fN:Landroid/graphics/Rect;
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/Rect;->height()I
|
|
|
|
move-result v0
|
|
|
|
int-to-float v0, v0
|
|
|
|
iget v1, p0, Lcom/airbnb/lottie/f;->scale:F
|
|
|
|
mul-float v0, v0, v1
|
|
|
|
float-to-int v0, v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getIntrinsicWidth()I
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->fz:Lcom/airbnb/lottie/d;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, -0x1
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
iget-object v0, v0, Lcom/airbnb/lottie/d;->fN:Landroid/graphics/Rect;
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/Rect;->width()I
|
|
|
|
move-result v0
|
|
|
|
int-to-float v0, v0
|
|
|
|
iget v1, p0, Lcom/airbnb/lottie/f;->scale:F
|
|
|
|
mul-float v0, v0, v1
|
|
|
|
float-to-int v0, v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getOpacity()I
|
|
.locals 1
|
|
|
|
const/4 v0, -0x3
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public invalidateDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
.locals 0
|
|
.param p1 # Landroid/graphics/drawable/Drawable;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/f;->getCallback()Landroid/graphics/drawable/Drawable$Callback;
|
|
|
|
move-result-object p1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-interface {p1, p0}, Landroid/graphics/drawable/Drawable$Callback;->invalidateDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public invalidateSelf()V
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/airbnb/lottie/f;->isDirty:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Lcom/airbnb/lottie/f;->isDirty:Z
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/f;->getCallback()Landroid/graphics/drawable/Drawable$Callback;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-interface {v0, p0}, Landroid/graphics/drawable/Drawable$Callback;->invalidateDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public isRunning()Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gb:Lcom/airbnb/lottie/f/e;
|
|
|
|
invoke-virtual {v0}, Lcom/airbnb/lottie/f/e;->isRunning()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final j(Z)V
|
|
.locals 2
|
|
|
|
iget-boolean v0, p0, Lcom/airbnb/lottie/f;->gk:Z
|
|
|
|
if-ne v0, p1, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x13
|
|
|
|
if-ge v0, v1, :cond_1
|
|
|
|
const-string p1, "Merge paths are not supported pre-Kit Kat."
|
|
|
|
invoke-static {p1}, Lcom/airbnb/lottie/f/d;->warning(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
iput-boolean p1, p0, Lcom/airbnb/lottie/f;->gk:Z
|
|
|
|
iget-object p1, p0, Lcom/airbnb/lottie/f;->fz:Lcom/airbnb/lottie/d;
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
invoke-direct {p0}, Lcom/airbnb/lottie/f;->aR()V
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public scheduleDrawable(Landroid/graphics/drawable/Drawable;Ljava/lang/Runnable;J)V
|
|
.locals 0
|
|
.param p1 # Landroid/graphics/drawable/Drawable;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Ljava/lang/Runnable;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/f;->getCallback()Landroid/graphics/drawable/Drawable$Callback;
|
|
|
|
move-result-object p1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-interface {p1, p0, p2, p3, p4}, Landroid/graphics/drawable/Drawable$Callback;->scheduleDrawable(Landroid/graphics/drawable/Drawable;Ljava/lang/Runnable;J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setAlpha(I)V
|
|
.locals 0
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/IntRange;
|
|
from = 0x0L
|
|
to = 0xffL
|
|
.end annotation
|
|
.end param
|
|
|
|
iput p1, p0, Lcom/airbnb/lottie/f;->alpha:I
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/f;->invalidateSelf()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setColorFilter(Landroid/graphics/ColorFilter;)V
|
|
.locals 0
|
|
.param p1 # Landroid/graphics/ColorFilter;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
const-string p1, "Use addColorFilter instead."
|
|
|
|
invoke-static {p1}, Lcom/airbnb/lottie/f/d;->warning(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setFrame(I)V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->fz:Lcom/airbnb/lottie/d;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->ge:Ljava/util/ArrayList;
|
|
|
|
new-instance v1, Lcom/airbnb/lottie/f$4;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/airbnb/lottie/f$4;-><init>(Lcom/airbnb/lottie/f;I)V
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gb:Lcom/airbnb/lottie/f/e;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/airbnb/lottie/f/e;->setFrame(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setMaxFrame(I)V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->fz:Lcom/airbnb/lottie/d;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->ge:Ljava/util/ArrayList;
|
|
|
|
new-instance v1, Lcom/airbnb/lottie/f$11;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/airbnb/lottie/f$11;-><init>(Lcom/airbnb/lottie/f;I)V
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gb:Lcom/airbnb/lottie/f/e;
|
|
|
|
int-to-float p1, p1
|
|
|
|
const v1, 0x3f7d70a4 # 0.99f
|
|
|
|
add-float/2addr p1, v1
|
|
|
|
invoke-virtual {v0, p1}, Lcom/airbnb/lottie/f/e;->e(F)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setMaxFrame(Ljava/lang/String;)V
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->fz:Lcom/airbnb/lottie/d;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->ge:Ljava/util/ArrayList;
|
|
|
|
new-instance v1, Lcom/airbnb/lottie/f$14;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/airbnb/lottie/f$14;-><init>(Lcom/airbnb/lottie/f;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-virtual {v0, p1}, Lcom/airbnb/lottie/d;->s(Ljava/lang/String;)Lcom/airbnb/lottie/c/h;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget p1, v0, Lcom/airbnb/lottie/c/h;->fO:F
|
|
|
|
iget v0, v0, Lcom/airbnb/lottie/c/h;->jT:F
|
|
|
|
add-float/2addr p1, v0
|
|
|
|
float-to-int p1, p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/airbnb/lottie/f;->setMaxFrame(I)V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, "Cannot find marker with name "
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string p1, "."
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final setMaxProgress(F)V
|
|
.locals 2
|
|
.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/f;->fz:Lcom/airbnb/lottie/d;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->ge:Ljava/util/ArrayList;
|
|
|
|
new-instance v1, Lcom/airbnb/lottie/f$12;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/airbnb/lottie/f$12;-><init>(Lcom/airbnb/lottie/f;F)V
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget v0, v0, Lcom/airbnb/lottie/d;->fO:F
|
|
|
|
iget-object v1, p0, Lcom/airbnb/lottie/f;->fz:Lcom/airbnb/lottie/d;
|
|
|
|
iget v1, v1, Lcom/airbnb/lottie/d;->fP:F
|
|
|
|
invoke-static {v0, v1, p1}, Lcom/airbnb/lottie/f/g;->lerp(FFF)F
|
|
|
|
move-result p1
|
|
|
|
float-to-int p1, p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/airbnb/lottie/f;->setMaxFrame(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setMinAndMaxFrame(Ljava/lang/String;)V
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->fz:Lcom/airbnb/lottie/d;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->ge:Ljava/util/ArrayList;
|
|
|
|
new-instance v1, Lcom/airbnb/lottie/f$2;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/airbnb/lottie/f$2;-><init>(Lcom/airbnb/lottie/f;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-virtual {v0, p1}, Lcom/airbnb/lottie/d;->s(Ljava/lang/String;)Lcom/airbnb/lottie/c/h;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget p1, v0, Lcom/airbnb/lottie/c/h;->fO:F
|
|
|
|
float-to-int p1, p1
|
|
|
|
iget v0, v0, Lcom/airbnb/lottie/c/h;->jT:F
|
|
|
|
float-to-int v0, v0
|
|
|
|
add-int/2addr v0, p1
|
|
|
|
invoke-virtual {p0, p1, v0}, Lcom/airbnb/lottie/f;->a(II)V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, "Cannot find marker with name "
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string p1, "."
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final setMinFrame(I)V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->fz:Lcom/airbnb/lottie/d;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->ge:Ljava/util/ArrayList;
|
|
|
|
new-instance v1, Lcom/airbnb/lottie/f$9;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/airbnb/lottie/f$9;-><init>(Lcom/airbnb/lottie/f;I)V
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gb:Lcom/airbnb/lottie/f/e;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/airbnb/lottie/f/e;->setMinFrame(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setMinFrame(Ljava/lang/String;)V
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->fz:Lcom/airbnb/lottie/d;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->ge:Ljava/util/ArrayList;
|
|
|
|
new-instance v1, Lcom/airbnb/lottie/f$13;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/airbnb/lottie/f$13;-><init>(Lcom/airbnb/lottie/f;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-virtual {v0, p1}, Lcom/airbnb/lottie/d;->s(Ljava/lang/String;)Lcom/airbnb/lottie/c/h;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget p1, v0, Lcom/airbnb/lottie/c/h;->fO:F
|
|
|
|
float-to-int p1, p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/airbnb/lottie/f;->setMinFrame(I)V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, "Cannot find marker with name "
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string p1, "."
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final setMinProgress(F)V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->fz:Lcom/airbnb/lottie/d;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->ge:Ljava/util/ArrayList;
|
|
|
|
new-instance v1, Lcom/airbnb/lottie/f$10;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/airbnb/lottie/f$10;-><init>(Lcom/airbnb/lottie/f;F)V
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget v0, v0, Lcom/airbnb/lottie/d;->fO:F
|
|
|
|
iget-object v1, p0, Lcom/airbnb/lottie/f;->fz:Lcom/airbnb/lottie/d;
|
|
|
|
iget v1, v1, Lcom/airbnb/lottie/d;->fP:F
|
|
|
|
invoke-static {v0, v1, p1}, Lcom/airbnb/lottie/f/g;->lerp(FFF)F
|
|
|
|
move-result p1
|
|
|
|
float-to-int p1, p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/airbnb/lottie/f;->setMinFrame(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setProgress(F)V
|
|
.locals 2
|
|
.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/f;->fz:Lcom/airbnb/lottie/d;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->ge:Ljava/util/ArrayList;
|
|
|
|
new-instance v1, Lcom/airbnb/lottie/f$5;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/airbnb/lottie/f$5;-><init>(Lcom/airbnb/lottie/f;F)V
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget v0, v0, Lcom/airbnb/lottie/d;->fO:F
|
|
|
|
iget-object v1, p0, Lcom/airbnb/lottie/f;->fz:Lcom/airbnb/lottie/d;
|
|
|
|
iget v1, v1, Lcom/airbnb/lottie/d;->fP:F
|
|
|
|
invoke-static {v0, v1, p1}, Lcom/airbnb/lottie/f/g;->lerp(FFF)F
|
|
|
|
move-result p1
|
|
|
|
float-to-int p1, p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/airbnb/lottie/f;->setFrame(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setRepeatCount(I)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gb:Lcom/airbnb/lottie/f/e;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/airbnb/lottie/f/e;->setRepeatCount(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setScale(F)V
|
|
.locals 0
|
|
|
|
iput p1, p0, Lcom/airbnb/lottie/f;->scale:F
|
|
|
|
invoke-direct {p0}, Lcom/airbnb/lottie/f;->aV()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public start()V
|
|
.locals 0
|
|
.annotation build Landroidx/annotation/MainThread;
|
|
.end annotation
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/f;->aL()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public stop()V
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/MainThread;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->ge:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gb:Lcom/airbnb/lottie/f/e;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-virtual {v0, v1}, Lcom/airbnb/lottie/f/e;->l(Z)V
|
|
|
|
invoke-virtual {v0}, Lcom/airbnb/lottie/f/e;->bI()Z
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0, v1}, Lcom/airbnb/lottie/f/e;->k(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final t(Ljava/lang/String;)Landroid/graphics/Bitmap;
|
|
.locals 6
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/f;->getCallback()Landroid/graphics/drawable/Drawable$Callback;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
move-object v0, v1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gf:Lcom/airbnb/lottie/b/b;
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/f;->getCallback()Landroid/graphics/drawable/Drawable$Callback;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
instance-of v3, v2, Landroid/view/View;
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
check-cast v2, Landroid/view/View;
|
|
|
|
invoke-virtual {v2}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move-object v2, v1
|
|
|
|
:goto_0
|
|
if-nez v2, :cond_2
|
|
|
|
iget-object v3, v0, Lcom/airbnb/lottie/b/b;->context:Landroid/content/Context;
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
:cond_2
|
|
iget-object v0, v0, Lcom/airbnb/lottie/b/b;->context:Landroid/content/Context;
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
:cond_3
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
const/4 v0, 0x0
|
|
|
|
:goto_1
|
|
if-nez v0, :cond_5
|
|
|
|
iput-object v1, p0, Lcom/airbnb/lottie/f;->gf:Lcom/airbnb/lottie/b/b;
|
|
|
|
:cond_5
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gf:Lcom/airbnb/lottie/b/b;
|
|
|
|
if-nez v0, :cond_6
|
|
|
|
new-instance v0, Lcom/airbnb/lottie/b/b;
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/f;->getCallback()Landroid/graphics/drawable/Drawable$Callback;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, p0, Lcom/airbnb/lottie/f;->fD:Ljava/lang/String;
|
|
|
|
iget-object v4, p0, Lcom/airbnb/lottie/f;->gg:Lcom/airbnb/lottie/b;
|
|
|
|
iget-object v5, p0, Lcom/airbnb/lottie/f;->fz:Lcom/airbnb/lottie/d;
|
|
|
|
iget-object v5, v5, Lcom/airbnb/lottie/d;->fH:Ljava/util/Map;
|
|
|
|
invoke-direct {v0, v2, v3, v4, v5}, Lcom/airbnb/lottie/b/b;-><init>(Landroid/graphics/drawable/Drawable$Callback;Ljava/lang/String;Lcom/airbnb/lottie/b;Ljava/util/Map;)V
|
|
|
|
iput-object v0, p0, Lcom/airbnb/lottie/f;->gf:Lcom/airbnb/lottie/b/b;
|
|
|
|
:cond_6
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gf:Lcom/airbnb/lottie/b/b;
|
|
|
|
:goto_2
|
|
if-eqz v0, :cond_7
|
|
|
|
invoke-virtual {v0, p1}, Lcom/airbnb/lottie/b/b;->v(Ljava/lang/String;)Landroid/graphics/Bitmap;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
:cond_7
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public unscheduleDrawable(Landroid/graphics/drawable/Drawable;Ljava/lang/Runnable;)V
|
|
.locals 0
|
|
.param p1 # Landroid/graphics/drawable/Drawable;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Ljava/lang/Runnable;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/f;->getCallback()Landroid/graphics/drawable/Drawable$Callback;
|
|
|
|
move-result-object p1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-interface {p1, p0, p2}, Landroid/graphics/drawable/Drawable$Callback;->unscheduleDrawable(Landroid/graphics/drawable/Drawable;Ljava/lang/Runnable;)V
|
|
|
|
return-void
|
|
.end method
|