apkfuckery/com.discord/smali/com/airbnb/lottie/f.smali

1334 lines
31 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class public Lcom/airbnb/lottie/f;
.super Landroid/graphics/drawable/Drawable;
2019-02-04 20:29:01 +00:00
.source "LottieDrawable.java"
2019-02-04 20:08:30 +00:00
# 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
2019-02-04 20:29:01 +00:00
.field static final TAG:Ljava/lang/String; = "f"
2019-02-04 20:08:30 +00:00
# instance fields
.field private alpha:I
2019-02-17 00:24:05 +00:00
.field public fT:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
.field fW:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
2019-02-17 00:24:05 +00:00
.field gA:Z
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
.field final gq:Lcom/airbnb/lottie/f/c;
.field private final gr:Ljava/util/Set;
2019-02-04 20:08:30 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
2019-02-17 00:24:05 +00:00
.field final gs:Ljava/util/ArrayList;
2019-02-04 20:08:30 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Lcom/airbnb/lottie/f$a;",
">;"
}
.end annotation
.end field
2019-02-17 00:24:05 +00:00
.field gt:Lcom/airbnb/lottie/b/b;
2019-02-04 20:08:30 +00:00
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
2019-02-17 00:24:05 +00:00
.field gu:Lcom/airbnb/lottie/b;
2019-02-04 20:08:30 +00:00
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
2019-02-17 00:24:05 +00:00
.field public gv:Lcom/airbnb/lottie/b/a;
2019-02-04 20:08:30 +00:00
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
2019-02-17 00:24:05 +00:00
.field public gw:Lcom/airbnb/lottie/a;
2019-02-04 20:08:30 +00:00
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
2019-02-17 00:24:05 +00:00
.field public gx:Lcom/airbnb/lottie/n;
2019-02-04 20:08:30 +00:00
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
2019-02-17 00:24:05 +00:00
.field public gy:Z
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
.field private gz:Lcom/airbnb/lottie/c/c/b;
2019-02-04 20:08:30 +00:00
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.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/c;
invoke-direct {v0}, Lcom/airbnb/lottie/f/c;-><init>()V
2019-02-17 00:24:05 +00:00
iput-object v0, p0, Lcom/airbnb/lottie/f;->gq:Lcom/airbnb/lottie/f/c;
2019-02-04 20:08:30 +00:00
const/high16 v0, 0x3f800000 # 1.0f
iput v0, p0, Lcom/airbnb/lottie/f;->scale:F
new-instance v0, Ljava/util/HashSet;
invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
2019-02-17 00:24:05 +00:00
iput-object v0, p0, Lcom/airbnb/lottie/f;->gr:Ljava/util/Set;
2019-02-04 20:08:30 +00:00
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
2019-02-17 00:24:05 +00:00
iput-object v0, p0, Lcom/airbnb/lottie/f;->gs:Ljava/util/ArrayList;
2019-02-04 20:08:30 +00:00
const/16 v0, 0xff
iput v0, p0, Lcom/airbnb/lottie/f;->alpha:I
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->gq:Lcom/airbnb/lottie/f/c;
2019-02-04 20:08:30 +00:00
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/c;->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
2019-02-17 00:24:05 +00:00
iget-object p0, p0, Lcom/airbnb/lottie/f;->gz:Lcom/airbnb/lottie/c/c/b;
2019-02-04 20:08:30 +00:00
return-object p0
.end method
.method private aV()V
.locals 3
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
return-void
:cond_0
2019-02-04 20:29:01 +00:00
iget v1, p0, Lcom/airbnb/lottie/f;->scale:F
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object v0, v0, Lcom/airbnb/lottie/d;->gf:Landroid/graphics/Rect;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
invoke-virtual {v0}, Landroid/graphics/Rect;->width()I
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
move-result v0
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
int-to-float v0, v0
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
mul-float v0, v0, v1
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
float-to-int v0, v0
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object v2, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object v2, v2, Lcom/airbnb/lottie/d;->gf:Landroid/graphics/Rect;
2019-02-04 20:08:30 +00:00
invoke-virtual {v2}, Landroid/graphics/Rect;->height()I
move-result v2
int-to-float v2, v2
2019-02-04 20:29:01 +00:00
mul-float v2, v2, v1
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
float-to-int v1, v2
2019-02-04 20:08:30 +00:00
const/4 v2, 0x0
2019-02-04 20:29:01 +00:00
invoke-virtual {p0, v2, v2, v0, v1}, Lcom/airbnb/lottie/f;->setBounds(IIII)V
2019-02-04 20:08:30 +00:00
return-void
.end method
.method static synthetic b(Lcom/airbnb/lottie/f;)Lcom/airbnb/lottie/f/c;
.locals 0
2019-02-17 00:24:05 +00:00
iget-object p0, p0, Lcom/airbnb/lottie/f;->gq:Lcom/airbnb/lottie/f/c;
2019-02-04 20:08:30 +00:00
return-object p0
.end method
# virtual methods
.method public final a(Lcom/airbnb/lottie/c/e;Ljava/lang/Object;Lcom/airbnb/lottie/g/c;)V
2019-02-04 20:29:01 +00:00
.locals 6
2019-02-04 20:08:30 +00:00
.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
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->gz:Lcom/airbnb/lottie/c/c/b;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->gs:Ljava/util/ArrayList;
2019-02-04 20:08:30 +00:00
new-instance v1, Lcom/airbnb/lottie/f$4;
invoke-direct {v1, p0, p1, p2, p3}, Lcom/airbnb/lottie/f$4;-><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
2019-02-17 00:24:05 +00:00
iget-object v0, p1, Lcom/airbnb/lottie/c/e;->jA:Lcom/airbnb/lottie/c/f;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
const/4 v1, 0x1
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
const/4 v2, 0x0
2019-02-04 20:08:30 +00:00
if-eqz v0, :cond_1
2019-02-17 00:24:05 +00:00
iget-object p1, p1, Lcom/airbnb/lottie/c/e;->jA:Lcom/airbnb/lottie/c/f;
2019-02-04 20:08:30 +00:00
invoke-interface {p1, p2, p3}, Lcom/airbnb/lottie/c/f;->a(Ljava/lang/Object;Lcom/airbnb/lottie/g/c;)V
2019-02-04 20:29:01 +00:00
goto :goto_2
2019-02-04 20:08:30 +00:00
:cond_1
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->gz:Lcom/airbnb/lottie/c/c/b;
2019-02-04 20:29:01 +00:00
if-nez v0, :cond_2
const-string p1, "LOTTIE"
const-string v0, "Cannot resolve KeyPath. Composition is not set yet."
invoke-static {p1, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
2019-02-04 20:08:30 +00:00
move-result-object p1
2019-02-04 20:29:01 +00:00
goto :goto_0
:cond_2
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
2019-02-17 00:24:05 +00:00
iget-object v3, p0, Lcom/airbnb/lottie/f;->gz:Lcom/airbnb/lottie/c/c/b;
2019-02-04 20:29:01 +00:00
new-instance v4, Lcom/airbnb/lottie/c/e;
new-array v5, v2, [Ljava/lang/String;
invoke-direct {v4, v5}, Lcom/airbnb/lottie/c/e;-><init>([Ljava/lang/String;)V
invoke-virtual {v3, p1, v2, v0, v4}, Lcom/airbnb/lottie/c/c/b;->a(Lcom/airbnb/lottie/c/e;ILjava/util/List;Lcom/airbnb/lottie/c/e;)V
move-object p1, v0
2019-02-04 20:08:30 +00:00
:goto_0
2019-02-04 20:29:01 +00:00
const/4 v0, 0x0
:goto_1
2019-02-04 20:08:30 +00:00
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v3
2019-02-04 20:29:01 +00:00
if-ge v0, v3, :cond_3
2019-02-04 20:08:30 +00:00
invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Lcom/airbnb/lottie/c/e;
2019-02-17 00:24:05 +00:00
iget-object v3, v3, Lcom/airbnb/lottie/c/e;->jA:Lcom/airbnb/lottie/c/f;
2019-02-04 20:08:30 +00:00
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
2019-02-04 20:29:01 +00:00
goto :goto_1
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
:cond_3
2019-02-04 20:08:30 +00:00
invoke-interface {p1}, Ljava/util/List;->isEmpty()Z
move-result p1
2019-02-04 20:29:01 +00:00
if-nez p1, :cond_4
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
goto :goto_2
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
:cond_4
const/4 v1, 0x0
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
:goto_2
if-eqz v1, :cond_5
2019-02-04 20:08:30 +00:00
invoke-virtual {p0}, Lcom/airbnb/lottie/f;->invalidateSelf()V
2019-02-17 00:24:05 +00:00
sget-object p1, Lcom/airbnb/lottie/i;->hk:Ljava/lang/Float;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
if-ne p2, p1, :cond_5
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object p1, p0, Lcom/airbnb/lottie/f;->gq:Lcom/airbnb/lottie/f/c;
2019-02-04 20:08:30 +00:00
invoke-virtual {p1}, Lcom/airbnb/lottie/f/c;->by()F
move-result p1
invoke-virtual {p0, p1}, Lcom/airbnb/lottie/f;->setProgress(F)V
2019-02-04 20:29:01 +00:00
:cond_5
2019-02-04 20:08:30 +00:00
return-void
.end method
.method public final a(Lcom/airbnb/lottie/d;)Z
.locals 5
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
const/4 v1, 0x0
if-ne v0, p1, :cond_0
return v1
:cond_0
invoke-virtual {p0}, Lcom/airbnb/lottie/f;->aT()V
2019-02-17 00:24:05 +00:00
iput-object p1, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
invoke-virtual {p0}, Lcom/airbnb/lottie/f;->aS()V
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->gq:Lcom/airbnb/lottie/f/c;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object v2, v0, Lcom/airbnb/lottie/f/c;->fT:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
const/4 v3, 0x1
if-nez v2, :cond_1
const/4 v1, 0x1
:cond_1
2019-02-17 00:24:05 +00:00
iput-object p1, v0, Lcom/airbnb/lottie/f/c;->fT:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
if-eqz v1, :cond_2
2019-02-17 00:24:05 +00:00
iget v1, v0, Lcom/airbnb/lottie/f/c;->mK:F
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget v2, p1, Lcom/airbnb/lottie/d;->gg:F
2019-02-04 20:08:30 +00:00
invoke-static {v1, v2}, Ljava/lang/Math;->max(FF)F
move-result v1
float-to-int v1, v1
2019-02-17 00:24:05 +00:00
iget v2, v0, Lcom/airbnb/lottie/f/c;->mL:F
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget v4, p1, Lcom/airbnb/lottie/d;->gh:F
2019-02-04 20:08:30 +00:00
invoke-static {v2, v4}, Ljava/lang/Math;->min(FF)F
move-result v2
float-to-int v2, v2
invoke-virtual {v0, v1, v2}, Lcom/airbnb/lottie/f/c;->a(II)V
2019-02-04 20:29:01 +00:00
goto :goto_0
2019-02-04 20:08:30 +00:00
:cond_2
2019-02-17 00:24:05 +00:00
iget v1, p1, Lcom/airbnb/lottie/d;->gg:F
2019-02-04 20:08:30 +00:00
float-to-int v1, v1
2019-02-17 00:24:05 +00:00
iget v2, p1, Lcom/airbnb/lottie/d;->gh:F
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
float-to-int v2, v2
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
invoke-virtual {v0, v1, v2}, Lcom/airbnb/lottie/f/c;->a(II)V
:goto_0
2019-02-17 00:24:05 +00:00
iget v1, v0, Lcom/airbnb/lottie/f/c;->mJ:F
2019-02-04 20:08:30 +00:00
float-to-int v1, v1
invoke-virtual {v0, v1}, Lcom/airbnb/lottie/f/c;->setFrame(I)V
invoke-static {}, Ljava/lang/System;->nanoTime()J
move-result-wide v1
2019-02-17 00:24:05 +00:00
iput-wide v1, v0, Lcom/airbnb/lottie/f/c;->mI:J
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->gq:Lcom/airbnb/lottie/f/c;
2019-02-04 20:08:30 +00:00
invoke-virtual {v0}, Lcom/airbnb/lottie/f/c;->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;
2019-02-17 00:24:05 +00:00
iget-object v1, p0, Lcom/airbnb/lottie/f;->gs:Ljava/util/ArrayList;
2019-02-04 20:08:30 +00:00
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
2019-02-04 20:29:01 +00:00
:goto_1
2019-02-04 20:08:30 +00:00
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
2019-02-04 20:29:01 +00:00
goto :goto_1
2019-02-04 20:08:30 +00:00
:cond_3
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->gs:Ljava/util/ArrayList;
2019-02-04 20:08:30 +00:00
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
2019-02-17 00:24:05 +00:00
iget-boolean v0, p0, Lcom/airbnb/lottie/f;->gA:Z
2019-02-04 20:08:30 +00:00
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
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->gz:Lcom/airbnb/lottie/c/c/b;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->gs:Ljava/util/ArrayList;
2019-02-04 20:08:30 +00:00
new-instance v1, Lcom/airbnb/lottie/f$5;
invoke-direct {v1, p0}, Lcom/airbnb/lottie/f$5;-><init>(Lcom/airbnb/lottie/f;)V
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
return-void
:cond_0
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->gq:Lcom/airbnb/lottie/f/c;
2019-02-04 20:08:30 +00:00
invoke-virtual {v0}, Lcom/airbnb/lottie/f/c;->aL()V
return-void
.end method
.method public final aR()V
.locals 1
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->gt:Lcom/airbnb/lottie/b/b;
2019-02-04 20:08:30 +00:00
if-eqz v0, :cond_0
invoke-virtual {v0}, Lcom/airbnb/lottie/b/b;->aR()V
:cond_0
return-void
.end method
2019-02-04 20:29:01 +00:00
.method final aS()V
.locals 4
new-instance v0, Lcom/airbnb/lottie/c/c/b;
2019-02-17 00:24:05 +00:00
iget-object v1, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
2019-02-04 20:29:01 +00:00
invoke-static {v1}, Lcom/airbnb/lottie/e/q;->b(Lcom/airbnb/lottie/d;)Lcom/airbnb/lottie/c/c/d;
move-result-object v1
2019-02-17 00:24:05 +00:00
iget-object v2, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
2019-02-04 20:29:01 +00:00
2019-02-17 00:24:05 +00:00
iget-object v2, v2, Lcom/airbnb/lottie/d;->ge:Ljava/util/List;
2019-02-04 20:29:01 +00:00
2019-02-17 00:24:05 +00:00
iget-object v3, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
2019-02-04 20:29:01 +00:00
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
2019-02-17 00:24:05 +00:00
iput-object v0, p0, Lcom/airbnb/lottie/f;->gz:Lcom/airbnb/lottie/c/c/b;
2019-02-04 20:29:01 +00:00
return-void
.end method
2019-02-04 20:08:30 +00:00
.method public final aT()V
.locals 1
invoke-virtual {p0}, Lcom/airbnb/lottie/f;->aR()V
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->gq:Lcom/airbnb/lottie/f/c;
2019-02-04 20:08:30 +00:00
invoke-virtual {v0}, Lcom/airbnb/lottie/f/c;->isRunning()Z
move-result v0
if-eqz v0, :cond_0
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->gq:Lcom/airbnb/lottie/f/c;
2019-02-04 20:08:30 +00:00
invoke-virtual {v0}, Lcom/airbnb/lottie/f/c;->cancel()V
:cond_0
const/4 v0, 0x0
2019-02-17 00:24:05 +00:00
iput-object v0, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iput-object v0, p0, Lcom/airbnb/lottie/f;->gz:Lcom/airbnb/lottie/c/c/b;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iput-object v0, p0, Lcom/airbnb/lottie/f;->gt:Lcom/airbnb/lottie/b/b;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->gq:Lcom/airbnb/lottie/f/c;
2019-02-04 20:08:30 +00:00
invoke-virtual {v0}, Lcom/airbnb/lottie/f/c;->aT()V
invoke-virtual {p0}, Lcom/airbnb/lottie/f;->invalidateSelf()V
return-void
.end method
.method public final aU()Z
.locals 1
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->gx:Lcom/airbnb/lottie/n;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object v0, v0, Lcom/airbnb/lottie/d;->gc:Landroidx/collection/SparseArrayCompat;
2019-02-04 20:08:30 +00:00
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 public draw(Landroid/graphics/Canvas;)V
.locals 8
.param p1 # Landroid/graphics/Canvas;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
const-string v0, "Drawable#draw"
invoke-static {v0}, Lcom/airbnb/lottie/c;->beginSection(Ljava/lang/String;)V
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->gz:Lcom/airbnb/lottie/c/c/b;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
return-void
:cond_0
iget v0, p0, Lcom/airbnb/lottie/f;->scale:F
invoke-virtual {p1}, Landroid/graphics/Canvas;->getWidth()I
move-result v1
int-to-float v1, v1
2019-02-17 00:24:05 +00:00
iget-object v2, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object v2, v2, Lcom/airbnb/lottie/d;->gf:Landroid/graphics/Rect;
2019-02-04 20:08:30 +00:00
invoke-virtual {v2}, Landroid/graphics/Rect;->width()I
move-result v2
int-to-float v2, v2
div-float/2addr v1, v2
invoke-virtual {p1}, Landroid/graphics/Canvas;->getHeight()I
move-result v2
int-to-float v2, v2
2019-02-17 00:24:05 +00:00
iget-object v3, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object v3, v3, Lcom/airbnb/lottie/d;->gf:Landroid/graphics/Rect;
2019-02-04 20:08:30 +00:00
invoke-virtual {v3}, Landroid/graphics/Rect;->height()I
move-result v3
int-to-float v3, v3
div-float/2addr v2, v3
invoke-static {v1, v2}, Ljava/lang/Math;->min(FF)F
move-result v1
const/high16 v2, 0x3f800000 # 1.0f
cmpl-float v3, v0, v1
if-lez v3, :cond_1
iget v0, p0, Lcom/airbnb/lottie/f;->scale:F
div-float/2addr v0, v1
goto :goto_0
:cond_1
move v1, v0
const/high16 v0, 0x3f800000 # 1.0f
:goto_0
cmpl-float v3, v0, v2
if-lez v3, :cond_2
invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I
2019-02-17 00:24:05 +00:00
iget-object v3, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object v3, v3, Lcom/airbnb/lottie/d;->gf:Landroid/graphics/Rect;
2019-02-04 20:08:30 +00:00
invoke-virtual {v3}, Landroid/graphics/Rect;->width()I
move-result v3
int-to-float v3, v3
const/high16 v4, 0x40000000 # 2.0f
div-float/2addr v3, v4
2019-02-17 00:24:05 +00:00
iget-object v5, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object v5, v5, Lcom/airbnb/lottie/d;->gf:Landroid/graphics/Rect;
2019-02-04 20:08:30 +00:00
invoke-virtual {v5}, Landroid/graphics/Rect;->height()I
move-result v5
int-to-float v5, v5
div-float/2addr v5, v4
mul-float v4, v3, v1
mul-float v6, v5, v1
iget v7, p0, Lcom/airbnb/lottie/f;->scale:F
2019-02-04 20:29:01 +00:00
mul-float v3, v3, v7
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
sub-float/2addr v3, v4
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
mul-float v7, v7, v5
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
sub-float/2addr v7, v6
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
invoke-virtual {p1, v3, v7}, Landroid/graphics/Canvas;->translate(FF)V
2019-02-04 20:08:30 +00:00
invoke-virtual {p1, v0, v0, v4, v6}, Landroid/graphics/Canvas;->scale(FFFF)V
:cond_2
iget-object v3, p0, Lcom/airbnb/lottie/f;->matrix:Landroid/graphics/Matrix;
invoke-virtual {v3}, Landroid/graphics/Matrix;->reset()V
iget-object v3, p0, Lcom/airbnb/lottie/f;->matrix:Landroid/graphics/Matrix;
invoke-virtual {v3, v1, v1}, Landroid/graphics/Matrix;->preScale(FF)Z
2019-02-17 00:24:05 +00:00
iget-object v1, p0, Lcom/airbnb/lottie/f;->gz:Lcom/airbnb/lottie/c/c/b;
2019-02-04 20:08:30 +00:00
iget-object v3, p0, Lcom/airbnb/lottie/f;->matrix:Landroid/graphics/Matrix;
iget v4, p0, Lcom/airbnb/lottie/f;->alpha:I
invoke-virtual {v1, p1, v3, v4}, Lcom/airbnb/lottie/c/c/b;->a(Landroid/graphics/Canvas;Landroid/graphics/Matrix;I)V
const-string v1, "Drawable#draw"
invoke-static {v1}, Lcom/airbnb/lottie/c;->s(Ljava/lang/String;)F
cmpl-float v0, v0, v2
if-lez v0, :cond_3
invoke-virtual {p1}, Landroid/graphics/Canvas;->restore()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
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
const/4 v0, -0x1
return v0
:cond_0
2019-02-17 00:24:05 +00:00
iget-object v0, v0, Lcom/airbnb/lottie/d;->gf:Landroid/graphics/Rect;
2019-02-04 20:08:30 +00:00
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
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
const/4 v0, -0x1
return v0
:cond_0
2019-02-17 00:24:05 +00:00
iget-object v0, v0, Lcom/airbnb/lottie/d;->gf:Landroid/graphics/Rect;
2019-02-04 20:08:30 +00:00
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
invoke-virtual {p0}, Lcom/airbnb/lottie/f;->getCallback()Landroid/graphics/drawable/Drawable$Callback;
move-result-object v0
if-eqz v0, :cond_0
invoke-interface {v0, p0}, Landroid/graphics/drawable/Drawable$Callback;->invalidateDrawable(Landroid/graphics/drawable/Drawable;)V
:cond_0
return-void
.end method
.method public isRunning()Z
.locals 1
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->gq:Lcom/airbnb/lottie/f/c;
2019-02-04 20:08:30 +00:00
invoke-virtual {v0}, Lcom/airbnb/lottie/f/c;->isRunning()Z
move-result v0
return v0
.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
return-void
.end method
.method public setColorFilter(Landroid/graphics/ColorFilter;)V
.locals 1
.param p1 # Landroid/graphics/ColorFilter;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
const-string p1, "LOTTIE"
const-string v0, "Use addColorFilter instead."
invoke-static {p1, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
return-void
.end method
.method public final setFrame(I)V
.locals 2
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->gs:Ljava/util/ArrayList;
2019-02-04 20:08:30 +00:00
new-instance v1, Lcom/airbnb/lottie/f$2;
invoke-direct {v1, p0, p1}, Lcom/airbnb/lottie/f$2;-><init>(Lcom/airbnb/lottie/f;I)V
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
return-void
:cond_0
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->gq:Lcom/airbnb/lottie/f/c;
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, p1}, Lcom/airbnb/lottie/f/c;->setFrame(I)V
return-void
.end method
.method public final setMaxFrame(I)V
.locals 2
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->gs:Ljava/util/ArrayList;
2019-02-04 20:08:30 +00:00
new-instance v1, Lcom/airbnb/lottie/f$8;
invoke-direct {v1, p0, p1}, Lcom/airbnb/lottie/f$8;-><init>(Lcom/airbnb/lottie/f;I)V
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
return-void
:cond_0
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->gq:Lcom/airbnb/lottie/f/c;
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, p1}, Lcom/airbnb/lottie/f/c;->setMaxFrame(I)V
return-void
.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
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->gs:Ljava/util/ArrayList;
2019-02-04 20:08:30 +00:00
new-instance v1, Lcom/airbnb/lottie/f$9;
invoke-direct {v1, p0, p1}, Lcom/airbnb/lottie/f$9;-><init>(Lcom/airbnb/lottie/f;F)V
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
return-void
:cond_0
2019-02-17 00:24:05 +00:00
iget v0, v0, Lcom/airbnb/lottie/d;->gg:F
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object v1, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget v1, v1, Lcom/airbnb/lottie/d;->gh:F
2019-02-04 20:08:30 +00:00
sub-float/2addr v1, v0
mul-float p1, p1, v1
add-float/2addr v0, p1
float-to-int p1, v0
invoke-virtual {p0, p1}, Lcom/airbnb/lottie/f;->setMaxFrame(I)V
return-void
.end method
.method public final setMinFrame(I)V
.locals 2
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->gs:Ljava/util/ArrayList;
2019-02-04 20:08:30 +00:00
new-instance v1, Lcom/airbnb/lottie/f$6;
invoke-direct {v1, p0, p1}, Lcom/airbnb/lottie/f$6;-><init>(Lcom/airbnb/lottie/f;I)V
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
return-void
:cond_0
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->gq:Lcom/airbnb/lottie/f/c;
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, p1}, Lcom/airbnb/lottie/f/c;->setMinFrame(I)V
return-void
.end method
.method public final setMinProgress(F)V
.locals 2
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->gs:Ljava/util/ArrayList;
2019-02-04 20:08:30 +00:00
new-instance v1, Lcom/airbnb/lottie/f$7;
invoke-direct {v1, p0, p1}, Lcom/airbnb/lottie/f$7;-><init>(Lcom/airbnb/lottie/f;F)V
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
return-void
:cond_0
2019-02-17 00:24:05 +00:00
iget v0, v0, Lcom/airbnb/lottie/d;->gg:F
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object v1, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget v1, v1, Lcom/airbnb/lottie/d;->gh:F
2019-02-04 20:08:30 +00:00
sub-float/2addr v1, v0
mul-float p1, p1, v1
add-float/2addr v0, p1
float-to-int p1, v0
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
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->gs:Ljava/util/ArrayList;
2019-02-04 20:08:30 +00:00
new-instance v1, Lcom/airbnb/lottie/f$3;
invoke-direct {v1, p0, p1}, Lcom/airbnb/lottie/f$3;-><init>(Lcom/airbnb/lottie/f;F)V
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
return-void
:cond_0
2019-02-17 00:24:05 +00:00
iget v0, v0, Lcom/airbnb/lottie/d;->gg:F
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object v1, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget v1, v1, Lcom/airbnb/lottie/d;->gh:F
2019-02-04 20:08:30 +00:00
sub-float/2addr v1, v0
mul-float p1, p1, v1
add-float/2addr v0, p1
float-to-int p1, v0
invoke-virtual {p0, p1}, Lcom/airbnb/lottie/f;->setFrame(I)V
return-void
.end method
.method public final setRepeatCount(I)V
.locals 1
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->gq:Lcom/airbnb/lottie/f/c;
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, p1}, Lcom/airbnb/lottie/f/c;->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
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->gs:Ljava/util/ArrayList;
2019-02-04 20:08:30 +00:00
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->gq:Lcom/airbnb/lottie/f/c;
2019-02-04 20:08:30 +00:00
const/4 v1, 0x1
2019-02-04 20:29:01 +00:00
invoke-virtual {v0, v1}, Lcom/airbnb/lottie/f/c;->k(Z)V
2019-02-04 20:08:30 +00:00
invoke-virtual {v0}, Lcom/airbnb/lottie/f/c;->bA()Z
move-result v1
2019-02-04 20:29:01 +00:00
invoke-virtual {v0, v1}, Lcom/airbnb/lottie/f/c;->j(Z)V
2019-02-04 20:08:30 +00:00
return-void
.end method
.method public final u(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
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->gt:Lcom/airbnb/lottie/b/b;
2019-02-04 20:08:30 +00:00
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
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->gt:Lcom/airbnb/lottie/b/b;
2019-02-04 20:08:30 +00:00
invoke-virtual {v0}, Lcom/airbnb/lottie/b/b;->aR()V
2019-02-17 00:24:05 +00:00
iput-object v1, p0, Lcom/airbnb/lottie/f;->gt:Lcom/airbnb/lottie/b/b;
2019-02-04 20:08:30 +00:00
:cond_5
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->gt:Lcom/airbnb/lottie/b/b;
2019-02-04 20:08:30 +00:00
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
2019-02-17 00:24:05 +00:00
iget-object v3, p0, Lcom/airbnb/lottie/f;->fW:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object v4, p0, Lcom/airbnb/lottie/f;->gu:Lcom/airbnb/lottie/b;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object v5, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object v5, v5, Lcom/airbnb/lottie/d;->ga:Ljava/util/Map;
2019-02-04 20:08:30 +00:00
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
2019-02-17 00:24:05 +00:00
iput-object v0, p0, Lcom/airbnb/lottie/f;->gt:Lcom/airbnb/lottie/b/b;
2019-02-04 20:08:30 +00:00
:cond_6
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f;->gt:Lcom/airbnb/lottie/b/b;
2019-02-04 20:08:30 +00:00
: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