2019-07-24 11:27:29 +00:00
|
|
|
.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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
.field public fB:Lcom/airbnb/lottie/d;
|
|
|
|
|
|
|
|
.field fF:Ljava/lang/String;
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
.field final gc:Lcom/airbnb/lottie/f/e;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
.field private gd:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
.field private final ge:Ljava/util/Set;
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/Set<",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
.field final gf:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/ArrayList<",
|
|
|
|
"Lcom/airbnb/lottie/f$a;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
.field gg:Lcom/airbnb/lottie/b/b;
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
.field gh:Lcom/airbnb/lottie/b;
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
.field public gi:Lcom/airbnb/lottie/b/a;
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
.field public gj:Lcom/airbnb/lottie/a;
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
.field public gk:Lcom/airbnb/lottie/p;
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
.field public gl:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
.field private gm:Lcom/airbnb/lottie/c/c/b;
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
.field gn:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
.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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iput-object v0, p0, Lcom/airbnb/lottie/f;->gc:Lcom/airbnb/lottie/f/e;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/high16 v0, 0x3f800000 # 1.0f
|
|
|
|
|
|
|
|
iput v0, p0, Lcom/airbnb/lottie/f;->scale:F
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iput-boolean v0, p0, Lcom/airbnb/lottie/f;->gd:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
new-instance v0, Ljava/util/HashSet;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iput-object v0, p0, Lcom/airbnb/lottie/f;->ge:Ljava/util/Set;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iput-object v0, p0, Lcom/airbnb/lottie/f;->gf:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gc:Lcom/airbnb/lottie/f/e;
|
2019-07-24 11:27:29 +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/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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object p0, p0, Lcom/airbnb/lottie/f;->gm:Lcom/airbnb/lottie/c/c/b;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gm:Lcom/airbnb/lottie/c/c/b;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v1, p0, Lcom/airbnb/lottie/f;->gm:Lcom/airbnb/lottie/c/c/b;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v1, p0, Lcom/airbnb/lottie/f;->fB:Lcom/airbnb/lottie/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {v1}, Lcom/airbnb/lottie/e/s;->b(Lcom/airbnb/lottie/d;)Lcom/airbnb/lottie/c/c/d;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v2, p0, Lcom/airbnb/lottie/f;->fB:Lcom/airbnb/lottie/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v2, v2, Lcom/airbnb/lottie/d;->fO:Ljava/util/List;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v3, p0, Lcom/airbnb/lottie/f;->fB:Lcom/airbnb/lottie/d;
|
2019-07-24 11:27:29 +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-07-31 00:08:31 +00:00
|
|
|
iput-object v0, p0, Lcom/airbnb/lottie/f;->gm:Lcom/airbnb/lottie/c/c/b;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private aV()V
|
|
|
|
.locals 3
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->fB:Lcom/airbnb/lottie/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget v1, p0, Lcom/airbnb/lottie/f;->scale:F
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, v0, Lcom/airbnb/lottie/d;->fP:Landroid/graphics/Rect;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v2, p0, Lcom/airbnb/lottie/f;->fB:Lcom/airbnb/lottie/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v2, v2, Lcom/airbnb/lottie/d;->fP:Landroid/graphics/Rect;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object p0, p0, Lcom/airbnb/lottie/f;->gc:Lcom/airbnb/lottie/f/e;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final a(II)V
|
|
|
|
.locals 2
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->fB:Lcom/airbnb/lottie/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gf:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gc:Lcom/airbnb/lottie/f/e;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gm:Lcom/airbnb/lottie/c/c/b;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gf:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p1, Lcom/airbnb/lottie/c/e;->jQ:Lcom/airbnb/lottie/c/f;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object p1, p1, Lcom/airbnb/lottie/c/e;->jQ:Lcom/airbnb/lottie/c/f;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v3, v3, Lcom/airbnb/lottie/c/e;->jQ:Lcom/airbnb/lottie/c/f;
|
2019-07-24 11:27:29 +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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
sget-object p1, Lcom/airbnb/lottie/j;->hc:Ljava/lang/Float;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-ne p2, p1, :cond_4
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object p1, p0, Lcom/airbnb/lottie/f;->gc:Lcom/airbnb/lottie/f/e;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->fB:Lcom/airbnb/lottie/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iput-object p1, p0, Lcom/airbnb/lottie/f;->fB:Lcom/airbnb/lottie/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/airbnb/lottie/f;->aR()V
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gc:Lcom/airbnb/lottie/f/e;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v2, v0, Lcom/airbnb/lottie/f/e;->fB:Lcom/airbnb/lottie/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
:cond_1
|
2019-07-31 00:08:31 +00:00
|
|
|
iput-object p1, v0, Lcom/airbnb/lottie/f/e;->fB:Lcom/airbnb/lottie/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget v1, v0, Lcom/airbnb/lottie/f/e;->nT:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget v2, p1, Lcom/airbnb/lottie/d;->fQ:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {v1, v2}, Ljava/lang/Math;->max(FF)F
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
float-to-int v1, v1
|
|
|
|
|
|
|
|
int-to-float v1, v1
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget v2, v0, Lcom/airbnb/lottie/f/e;->nU:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget v4, p1, Lcom/airbnb/lottie/d;->fR:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
2019-07-31 00:08:31 +00:00
|
|
|
iget v1, p1, Lcom/airbnb/lottie/d;->fQ:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
float-to-int v1, v1
|
|
|
|
|
|
|
|
int-to-float v1, v1
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget v2, p1, Lcom/airbnb/lottie/d;->fR:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
2019-07-31 00:08:31 +00:00
|
|
|
iget v1, v0, Lcom/airbnb/lottie/f/e;->nS:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iput v2, v0, Lcom/airbnb/lottie/f/e;->nS:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
float-to-int v1, v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/airbnb/lottie/f/e;->setFrame(I)V
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gc:Lcom/airbnb/lottie/f/e;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v1, p0, Lcom/airbnb/lottie/f;->gf:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +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
|
|
|
|
|
|
|
|
: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
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gf:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-boolean v0, p0, Lcom/airbnb/lottie/f;->gn:Z
|
2019-07-24 11:27:29 +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-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gm:Lcom/airbnb/lottie/c/c/b;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gf:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-boolean v0, p0, Lcom/airbnb/lottie/f;->gd:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gc:Lcom/airbnb/lottie/f/e;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/airbnb/lottie/f/e;->getRepeatCount()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
|
|
|
|
:cond_1
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gc:Lcom/airbnb/lottie/f/e;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/airbnb/lottie/f/e;->aL()V
|
|
|
|
|
|
|
|
:cond_2
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-boolean v0, p0, Lcom/airbnb/lottie/f;->gd:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gc:Lcom/airbnb/lottie/f/e;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget v0, v0, Lcom/airbnb/lottie/f/e;->nP:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
cmpg-float v0, v0, v1
|
|
|
|
|
|
|
|
if-gez v0, :cond_3
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gc:Lcom/airbnb/lottie/f/e;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/airbnb/lottie/f/e;->getMinFrame()F
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_3
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gc:Lcom/airbnb/lottie/f/e;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gf:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gc:Lcom/airbnb/lottie/f/e;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/airbnb/lottie/f/e;->aM()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final aS()V
|
|
|
|
.locals 1
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gc:Lcom/airbnb/lottie/f/e;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/airbnb/lottie/f/e;->isRunning()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gc:Lcom/airbnb/lottie/f/e;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/airbnb/lottie/f/e;->cancel()V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iput-object v0, p0, Lcom/airbnb/lottie/f;->fB:Lcom/airbnb/lottie/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iput-object v0, p0, Lcom/airbnb/lottie/f;->gm:Lcom/airbnb/lottie/c/c/b;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iput-object v0, p0, Lcom/airbnb/lottie/f;->gg:Lcom/airbnb/lottie/b/b;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gc:Lcom/airbnb/lottie/f/e;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gm:Lcom/airbnb/lottie/c/c/b;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gf:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gc:Lcom/airbnb/lottie/f/e;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/airbnb/lottie/f/e;->aT()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final aU()Z
|
|
|
|
.locals 1
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gk:Lcom/airbnb/lottie/p;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->fB:Lcom/airbnb/lottie/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, v0, Lcom/airbnb/lottie/d;->fM:Landroidx/collection/SparseArrayCompat;
|
2019-07-24 11:27:29 +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 final b(Ljava/lang/Boolean;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iput-boolean p1, p0, Lcom/airbnb/lottie/f;->gd:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v1, p0, Lcom/airbnb/lottie/f;->gm:Lcom/airbnb/lottie/c/c/b;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v3, p0, Lcom/airbnb/lottie/f;->fB:Lcom/airbnb/lottie/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v3, v3, Lcom/airbnb/lottie/d;->fP:Landroid/graphics/Rect;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v4, p0, Lcom/airbnb/lottie/f;->fB:Lcom/airbnb/lottie/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v4, v4, Lcom/airbnb/lottie/d;->fP:Landroid/graphics/Rect;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v3, p0, Lcom/airbnb/lottie/f;->fB:Lcom/airbnb/lottie/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v3, v3, Lcom/airbnb/lottie/d;->fP:Landroid/graphics/Rect;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v6, p0, Lcom/airbnb/lottie/f;->fB:Lcom/airbnb/lottie/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v6, v6, Lcom/airbnb/lottie/d;->fP:Landroid/graphics/Rect;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v1, p0, Lcom/airbnb/lottie/f;->gm:Lcom/airbnb/lottie/c/c/b;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->fB:Lcom/airbnb/lottie/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, -0x1
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_0
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, v0, Lcom/airbnb/lottie/d;->fP:Landroid/graphics/Rect;
|
2019-07-24 11:27:29 +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-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->fB:Lcom/airbnb/lottie/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, -0x1
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_0
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, v0, Lcom/airbnb/lottie/d;->fP:Landroid/graphics/Rect;
|
2019-07-24 11:27:29 +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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gc:Lcom/airbnb/lottie/f/e;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-boolean v0, p0, Lcom/airbnb/lottie/f;->gl:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
2019-07-31 00:08:31 +00:00
|
|
|
iput-boolean p1, p0, Lcom/airbnb/lottie/f;->gl:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object p1, p0, Lcom/airbnb/lottie/f;->fB:Lcom/airbnb/lottie/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->fB:Lcom/airbnb/lottie/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gf:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gc:Lcom/airbnb/lottie/f/e;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lcom/airbnb/lottie/f/e;->setFrame(I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final setMaxFrame(I)V
|
|
|
|
.locals 2
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->fB:Lcom/airbnb/lottie/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gf:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gc:Lcom/airbnb/lottie/f/e;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->fB:Lcom/airbnb/lottie/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gf:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget p1, v0, Lcom/airbnb/lottie/c/h;->fQ:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget v0, v0, Lcom/airbnb/lottie/c/h;->jU:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->fB:Lcom/airbnb/lottie/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gf:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
2019-07-31 00:08:31 +00:00
|
|
|
iget v0, v0, Lcom/airbnb/lottie/d;->fQ:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v1, p0, Lcom/airbnb/lottie/f;->fB:Lcom/airbnb/lottie/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget v1, v1, Lcom/airbnb/lottie/d;->fR:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->fB:Lcom/airbnb/lottie/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gf:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +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;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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget p1, v0, Lcom/airbnb/lottie/c/h;->fQ:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
float-to-int p1, p1
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget v0, v0, Lcom/airbnb/lottie/c/h;->jU:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->fB:Lcom/airbnb/lottie/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gf:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +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;I)V
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gc:Lcom/airbnb/lottie/f/e;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->fB:Lcom/airbnb/lottie/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gf:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget p1, v0, Lcom/airbnb/lottie/c/h;->fQ:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->fB:Lcom/airbnb/lottie/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gf:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
2019-07-31 00:08:31 +00:00
|
|
|
iget v0, v0, Lcom/airbnb/lottie/d;->fQ:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v1, p0, Lcom/airbnb/lottie/f;->fB:Lcom/airbnb/lottie/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget v1, v1, Lcom/airbnb/lottie/d;->fR:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->fB:Lcom/airbnb/lottie/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gf:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
2019-07-31 00:08:31 +00:00
|
|
|
iget v0, v0, Lcom/airbnb/lottie/d;->fQ:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v1, p0, Lcom/airbnb/lottie/f;->fB:Lcom/airbnb/lottie/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget v1, v1, Lcom/airbnb/lottie/d;->fR:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gc:Lcom/airbnb/lottie/f/e;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gf:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gc:Lcom/airbnb/lottie/f/e;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gg:Lcom/airbnb/lottie/b/b;
|
2019-07-24 11:27:29 +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-07-31 00:08:31 +00:00
|
|
|
iput-object v1, p0, Lcom/airbnb/lottie/f;->gg:Lcom/airbnb/lottie/b/b;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_5
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gg:Lcom/airbnb/lottie/b/b;
|
2019-07-24 11:27:29 +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-07-31 00:08:31 +00:00
|
|
|
iget-object v3, p0, Lcom/airbnb/lottie/f;->fF:Ljava/lang/String;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v4, p0, Lcom/airbnb/lottie/f;->gh:Lcom/airbnb/lottie/b;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v5, p0, Lcom/airbnb/lottie/f;->fB:Lcom/airbnb/lottie/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v5, v5, Lcom/airbnb/lottie/d;->fJ:Ljava/util/Map;
|
2019-07-24 11:27:29 +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-07-31 00:08:31 +00:00
|
|
|
iput-object v0, p0, Lcom/airbnb/lottie/f;->gg:Lcom/airbnb/lottie/b/b;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_6
|
2019-07-31 00:08:31 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/f;->gg:Lcom/airbnb/lottie/b/b;
|
2019-07-24 11:27:29 +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
|