LottieAnimationView.smali

.class public Lcom/lottie/LottieAnimationView;
.super Landroid/widget/ImageView;
.source "LottieAnimationView.java"


# static fields
.field private static final btF:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Lcom/lottie/bk;",
            ">;"
        }
    .end annotation
.end field

.field private static final btG:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/ref/WeakReference",
            "<",
            "Lcom/lottie/bk;",
            ">;>;"
        }
    .end annotation
.end field


# instance fields
.field private final brT:Lcom/lottie/bm;

.field private btJ:Ljava/lang/String;

.field private btK:Lcom/lottie/af;

.field private btT:Lcom/lottie/LottieAnimationView$CacheStrategy;

.field private btU:Z


# direct methods
.method static constructor <clinit>()V
    .registers 1

    .prologue
    .line 47
    const-class v0, Lcom/lottie/LottieAnimationView;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    .line 60
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    sput-object v0, Lcom/lottie/LottieAnimationView;->btF:Ljava/util/Map;

    .line 61
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    sput-object v0, Lcom/lottie/LottieAnimationView;->btG:Ljava/util/Map;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .registers 4
    .annotation build Landroid/support/annotation/Keep;
    .end annotation

    .prologue
    .line 90
    invoke-direct {p0, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    .line 64
    new-instance v0, Lcom/lottie/LottieAnimationView$1;

    invoke-direct {v0, p0}, Lcom/lottie/LottieAnimationView$1;-><init>(Lcom/lottie/LottieAnimationView;)V

    .line 73
    new-instance v0, Lcom/lottie/bm;

    invoke-direct {v0}, Lcom/lottie/bm;-><init>()V

    iput-object v0, p0, Lcom/lottie/LottieAnimationView;->brT:Lcom/lottie/bm;

    .line 372
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x10

    if-ge v0, v1, :cond_1d

    const/4 v0, 0x1

    :goto_16
    iput-boolean v0, p0, Lcom/lottie/LottieAnimationView;->btU:Z

    .line 91
    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lcom/lottie/LottieAnimationView;->a(Landroid/util/AttributeSet;)V

    .line 92
    return-void

    .line 372
    :cond_1d
    const/4 v0, 0x0

    goto :goto_16
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .registers 5

    .prologue
    .line 95
    invoke-direct {p0, p1, p2}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 64
    new-instance v0, Lcom/lottie/LottieAnimationView$1;

    invoke-direct {v0, p0}, Lcom/lottie/LottieAnimationView$1;-><init>(Lcom/lottie/LottieAnimationView;)V

    .line 73
    new-instance v0, Lcom/lottie/bm;

    invoke-direct {v0}, Lcom/lottie/bm;-><init>()V

    iput-object v0, p0, Lcom/lottie/LottieAnimationView;->brT:Lcom/lottie/bm;

    .line 372
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x10

    if-ge v0, v1, :cond_1c

    const/4 v0, 0x1

    :goto_16
    iput-boolean v0, p0, Lcom/lottie/LottieAnimationView;->btU:Z

    .line 96
    invoke-direct {p0, p2}, Lcom/lottie/LottieAnimationView;->a(Landroid/util/AttributeSet;)V

    .line 97
    return-void

    .line 372
    :cond_1c
    const/4 v0, 0x0

    goto :goto_16
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .registers 6

    .prologue
    .line 100
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 64
    new-instance v0, Lcom/lottie/LottieAnimationView$1;

    invoke-direct {v0, p0}, Lcom/lottie/LottieAnimationView$1;-><init>(Lcom/lottie/LottieAnimationView;)V

    .line 73
    new-instance v0, Lcom/lottie/bm;

    invoke-direct {v0}, Lcom/lottie/bm;-><init>()V

    iput-object v0, p0, Lcom/lottie/LottieAnimationView;->brT:Lcom/lottie/bm;

    .line 372
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x10

    if-ge v0, v1, :cond_1c

    const/4 v0, 0x1

    :goto_16
    iput-boolean v0, p0, Lcom/lottie/LottieAnimationView;->btU:Z

    .line 101
    invoke-direct {p0, p2}, Lcom/lottie/LottieAnimationView;->a(Landroid/util/AttributeSet;)V

    .line 102
    return-void

    .line 372
    :cond_1c
    const/4 v0, 0x0

    goto :goto_16
.end method

.method static synthetic Gw()Ljava/util/Map;
    .registers 1

    .prologue
    .line 46
    sget-object v0, Lcom/lottie/LottieAnimationView;->btF:Ljava/util/Map;

    return-object v0
.end method

.method static synthetic Gx()Ljava/util/Map;
    .registers 1

    .prologue
    .line 46
    sget-object v0, Lcom/lottie/LottieAnimationView;->btG:Ljava/util/Map;

    return-object v0
.end method

.method static synthetic a(Lcom/lottie/LottieAnimationView;)Lcom/lottie/af;
    .registers 2

    .prologue
    .line 46
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/lottie/LottieAnimationView;->btK:Lcom/lottie/af;

    return-object v0
.end method

.method private a(Landroid/util/AttributeSet;)V
    .registers 11

    .prologue
    const/4 v8, 0x0

    const/4 v7, 0x1

    const/4 v6, 0x0

    const/4 v5, 0x0

    .line 105
    invoke-virtual {p0}, Lcom/lottie/LottieAnimationView;->getContext()Landroid/content/Context;

    move-result-object v0

    sget-object v1, Lcom/lottie/cb;->LottieAnimationView:[I

    invoke-virtual {v0, p1, v1}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;

    move-result-object v0

    .line 106
    sget v1, Lcom/lottie/cb;->LottieAnimationView_lottie_fileName:I

    invoke-virtual {v0, v1}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 107
    invoke-virtual {p0}, Lcom/lottie/LottieAnimationView;->isInEditMode()Z

    move-result v2

    if-nez v2, :cond_1f

    if-eqz v1, :cond_1f

    .line 108
    invoke-direct {p0, v1}, Lcom/lottie/LottieAnimationView;->fU(Ljava/lang/String;)V

    .line 114
    :cond_1f
    iget-object v1, p0, Lcom/lottie/LottieAnimationView;->brT:Lcom/lottie/bm;

    sget v2, Lcom/lottie/cb;->LottieAnimationView_lottie_loop:I

    invoke-virtual {v0, v2, v6}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result v2

    invoke-virtual {v1, v2}, Lcom/lottie/bm;->aZ(Z)V

    .line 115
    sget v1, Lcom/lottie/cb;->LottieAnimationView_lottie_imageAssetsFolder:I

    invoke-virtual {v0, v1}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 116
    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_39

    .line 117
    invoke-virtual {p0, v1}, Lcom/lottie/LottieAnimationView;->fV(Ljava/lang/String;)V

    .line 119
    :cond_39
    sget v1, Lcom/lottie/cb;->LottieAnimationView_lottie_progress:I

    invoke-virtual {v0, v1, v8}, Landroid/content/res/TypedArray;->getFloat(IF)F

    move-result v1

    invoke-direct {p0, v1}, Lcom/lottie/LottieAnimationView;->setProgress(F)V

    .line 120
    sget v1, Lcom/lottie/cb;->LottieAnimationView_lottie_enableMergePathsForKitKatAndAbove:I

    invoke-virtual {v0, v1, v6}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result v1

    .line 1271
    iget-object v2, p0, Lcom/lottie/LottieAnimationView;->brT:Lcom/lottie/bm;

    .line 2130
    sget v3, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v4, 0x13

    if-lt v3, v4, :cond_59

    .line 2134
    iput-boolean v1, v2, Lcom/lottie/bm;->but:Z

    .line 2135
    iget-object v1, v2, Lcom/lottie/bm;->brC:Lcom/lottie/bk;

    if-eqz v1, :cond_59

    .line 2136
    invoke-virtual {v2}, Lcom/lottie/bm;->GB()V

    .line 122
    :cond_59
    sget v1, Lcom/lottie/cb;->LottieAnimationView_lottie_cacheStrategy:I

    sget-object v2, Lcom/lottie/LottieAnimationView$CacheStrategy;->None:Lcom/lottie/LottieAnimationView$CacheStrategy;

    .line 124
    invoke-virtual {v2}, Lcom/lottie/LottieAnimationView$CacheStrategy;->ordinal()I

    move-result v2

    .line 122
    invoke-virtual {v0, v1, v2}, Landroid/content/res/TypedArray;->getInt(II)I

    move-result v1

    .line 125
    invoke-static {}, Lcom/lottie/LottieAnimationView$CacheStrategy;->values()[Lcom/lottie/LottieAnimationView$CacheStrategy;

    move-result-object v2

    aget-object v1, v2, v1

    iput-object v1, p0, Lcom/lottie/LottieAnimationView;->btT:Lcom/lottie/LottieAnimationView$CacheStrategy;

    .line 126
    sget v1, Lcom/lottie/cb;->LottieAnimationView_lottie_colorFilter:I

    invoke-virtual {v0, v1}, Landroid/content/res/TypedArray;->hasValue(I)Z

    move-result v1

    if-eqz v1, :cond_9a

    .line 127
    new-instance v1, Lcom/lottie/cq;

    sget v2, Lcom/lottie/cb;->LottieAnimationView_lottie_colorFilter:I

    invoke-virtual {v0, v2, v6}, Landroid/content/res/TypedArray;->getColor(II)I

    move-result v2

    invoke-direct {v1, v2}, Lcom/lottie/cq;-><init>(I)V

    .line 2182
    iget-object v2, p0, Lcom/lottie/LottieAnimationView;->brT:Lcom/lottie/bm;

    .line 2299
    new-instance v3, Lcom/lottie/bn;

    invoke-direct {v3, v1}, Lcom/lottie/bn;-><init>(Landroid/graphics/ColorFilter;)V

    .line 2303
    iget-object v3, v2, Lcom/lottie/bm;->bun:Ljava/util/Set;

    new-instance v4, Lcom/lottie/bn;

    invoke-direct {v4, v1}, Lcom/lottie/bn;-><init>(Landroid/graphics/ColorFilter;)V

    invoke-interface {v3, v4}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 2306
    iget-object v3, v2, Lcom/lottie/bm;->buu:Lcom/lottie/aj;

    if-eqz v3, :cond_9a

    .line 2310
    iget-object v2, v2, Lcom/lottie/bm;->buu:Lcom/lottie/aj;

    invoke-virtual {v2, v5, v5, v1}, Lcom/lottie/aj;->a(Ljava/lang/String;Ljava/lang/String;Landroid/graphics/ColorFilter;)V

    .line 130
    :cond_9a
    invoke-virtual {v0}, Landroid/content/res/TypedArray;->recycle()V

    .line 131
    invoke-virtual {p0, v7, v5}, Lcom/lottie/LottieAnimationView;->setLayerType(ILandroid/graphics/Paint;)V

    .line 133
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x11

    if-lt v0, v1, :cond_be

    .line 134
    invoke-virtual {p0}, Lcom/lottie/LottieAnimationView;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    const-string v1, "animator_duration_scale"

    const/high16 v2, 0x3f800000    # 1.0f

    invoke-static {v0, v1, v2}, Landroid/provider/Settings$Global;->getFloat(Landroid/content/ContentResolver;Ljava/lang/String;F)F

    move-result v0

    .line 136
    cmpl-float v0, v0, v8

    if-nez v0, :cond_be

    .line 137
    iget-object v0, p0, Lcom/lottie/LottieAnimationView;->brT:Lcom/lottie/bm;

    .line 2329
    iput-boolean v7, v0, Lcom/lottie/bm;->bus:Z

    .line 2583
    :cond_be
    invoke-virtual {p0, v7, v5}, Lcom/lottie/LottieAnimationView;->setLayerType(ILandroid/graphics/Paint;)V

    .line 141
    return-void
.end method

.method private fU(Ljava/lang/String;)V
    .registers 5

    .prologue
    .line 306
    iget-object v1, p0, Lcom/lottie/LottieAnimationView;->btT:Lcom/lottie/LottieAnimationView$CacheStrategy;

    .line 5318
    iput-object p1, p0, Lcom/lottie/LottieAnimationView;->btJ:Ljava/lang/String;

    .line 5319
    sget-object v0, Lcom/lottie/LottieAnimationView;->btG:Ljava/util/Map;

    invoke-interface {v0, p1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_24

    .line 5320
    sget-object v0, Lcom/lottie/LottieAnimationView;->btG:Ljava/util/Map;

    invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/ref/WeakReference;

    .line 5321
    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v2

    if-eqz v2, :cond_38

    .line 5322
    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/lottie/bk;

    invoke-virtual {p0, v0}, Lcom/lottie/LottieAnimationView;->c(Lcom/lottie/bk;)V

    .line 5327
    :goto_23
    return-void

    .line 5325
    :cond_24
    sget-object v0, Lcom/lottie/LottieAnimationView;->btF:Ljava/util/Map;

    invoke-interface {v0, p1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_38

    .line 5326
    sget-object v0, Lcom/lottie/LottieAnimationView;->btF:Ljava/util/Map;

    invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/lottie/bk;

    invoke-virtual {p0, v0}, Lcom/lottie/LottieAnimationView;->c(Lcom/lottie/bk;)V

    goto :goto_23

    .line 5330
    :cond_38
    iput-object p1, p0, Lcom/lottie/LottieAnimationView;->btJ:Ljava/lang/String;

    .line 5331
    iget-object v0, p0, Lcom/lottie/LottieAnimationView;->brT:Lcom/lottie/bm;

    invoke-virtual {v0}, Lcom/lottie/bm;->Gz()V

    .line 5361
    iget-object v0, p0, Lcom/lottie/LottieAnimationView;->btK:Lcom/lottie/af;

    if-eqz v0, :cond_4b

    .line 5362
    iget-object v0, p0, Lcom/lottie/LottieAnimationView;->btK:Lcom/lottie/af;

    invoke-interface {v0}, Lcom/lottie/af;->cancel()V

    .line 5363
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/lottie/LottieAnimationView;->btK:Lcom/lottie/af;

    .line 5333
    :cond_4b
    invoke-virtual {p0}, Lcom/lottie/LottieAnimationView;->getContext()Landroid/content/Context;

    move-result-object v0

    new-instance v2, Lcom/lottie/LottieAnimationView$2;

    invoke-direct {v2, p0, v1, p1}, Lcom/lottie/LottieAnimationView$2;-><init>(Lcom/lottie/LottieAnimationView;Lcom/lottie/LottieAnimationView$CacheStrategy;Ljava/lang/String;)V

    invoke-static {v0, p1, v2}, Lcom/lottie/bl;->a(Landroid/content/Context;Ljava/lang/String;Lcom/lottie/bt;)Lcom/lottie/af;

    move-result-object v0

    iput-object v0, p0, Lcom/lottie/LottieAnimationView;->btK:Lcom/lottie/af;

    goto :goto_23
.end method

.method private setProgress(F)V
    .registers 3

    .prologue
    .line 570
    iget-object v0, p0, Lcom/lottie/LottieAnimationView;->brT:Lcom/lottie/bm;

    invoke-virtual {v0, p1}, Lcom/lottie/bm;->setProgress(F)V

    .line 571
    return-void
.end method


# virtual methods
.method public final Gy()V
    .registers 3

    .prologue
    .line 483
    iget-object v0, p0, Lcom/lottie/LottieAnimationView;->brT:Lcom/lottie/bm;

    invoke-virtual {v0}, Lcom/lottie/bm;->Gy()V

    .line 8583
    const/4 v0, 0x1

    const/4 v1, 0x0

    invoke-virtual {p0, v0, v1}, Lcom/lottie/LottieAnimationView;->setLayerType(ILandroid/graphics/Paint;)V

    .line 485
    return-void
.end method

.method public final Gz()V
    .registers 3

    .prologue
    .line 539
    iget-object v0, p0, Lcom/lottie/LottieAnimationView;->brT:Lcom/lottie/bm;

    invoke-virtual {v0}, Lcom/lottie/bm;->Gz()V

    .line 9583
    const/4 v0, 0x1

    const/4 v1, 0x0

    invoke-virtual {p0, v0, v1}, Lcom/lottie/LottieAnimationView;->setLayerType(ILandroid/graphics/Paint;)V

    .line 541
    return-void
.end method

.method public final aZ(Z)V
    .registers 3

    .prologue
    .line 475
    iget-object v0, p0, Lcom/lottie/LottieAnimationView;->brT:Lcom/lottie/bm;

    invoke-virtual {v0, p1}, Lcom/lottie/bm;->aZ(Z)V

    .line 476
    return-void
.end method

.method public final c(Lcom/lottie/bk;)V
    .registers 10

    .prologue
    const/4 v7, 0x0

    .line 378
    iget-boolean v0, p0, Lcom/lottie/LottieAnimationView;->btU:Z

    if-eqz v0, :cond_10

    .line 379
    invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;

    move-result-object v0

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v1

    if-eq v0, v1, :cond_10

    .line 416
    :cond_f
    :goto_f
    return-void

    .line 384
    :cond_10
    iget-object v0, p0, Lcom/lottie/LottieAnimationView;->brT:Lcom/lottie/bm;

    invoke-virtual {v0, p0}, Lcom/lottie/bm;->setCallback(Landroid/graphics/drawable/Drawable$Callback;)V

    .line 386
    iget-object v0, p0, Lcom/lottie/LottieAnimationView;->brT:Lcom/lottie/bm;

    invoke-virtual {v0, p1}, Lcom/lottie/bm;->d(Lcom/lottie/bk;)Z

    move-result v0

    .line 387
    if-eqz v0, :cond_f

    .line 393
    invoke-virtual {p0}, Lcom/lottie/LottieAnimationView;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/lottie/cx;->aq(Landroid/content/Context;)I

    move-result v0

    .line 394
    invoke-virtual {p0}, Lcom/lottie/LottieAnimationView;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/lottie/cx;->ar(Landroid/content/Context;)I

    move-result v1

    .line 6062
    iget-object v2, p1, Lcom/lottie/bk;->bounds:Landroid/graphics/Rect;

    .line 395
    invoke-virtual {v2}, Landroid/graphics/Rect;->width()I

    move-result v2

    .line 7062
    iget-object v3, p1, Lcom/lottie/bk;->bounds:Landroid/graphics/Rect;

    .line 396
    invoke-virtual {v3}, Landroid/graphics/Rect;->height()I

    move-result v3

    .line 397
    if-gt v2, v0, :cond_3d

    if-le v3, v1, :cond_80

    .line 399
    :cond_3d
    int-to-float v4, v0

    int-to-float v5, v2

    div-float/2addr v4, v5

    .line 400
    int-to-float v5, v1

    int-to-float v6, v3

    div-float/2addr v5, v6

    .line 401
    invoke-static {v4, v5}, Ljava/lang/Math;->min(FF)F

    move-result v4

    .line 7531
    iget-object v5, p0, Lcom/lottie/LottieAnimationView;->brT:Lcom/lottie/bm;

    invoke-virtual {v5, v4}, Lcom/lottie/bm;->setScale(F)V

    .line 7532
    invoke-virtual {p0}, Lcom/lottie/LottieAnimationView;->getDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object v4

    iget-object v5, p0, Lcom/lottie/LottieAnimationView;->brT:Lcom/lottie/bm;

    if-ne v4, v5, :cond_5c

    .line 7533
    invoke-virtual {p0, v7}, Lcom/lottie/LottieAnimationView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 7534
    iget-object v4, p0, Lcom/lottie/LottieAnimationView;->brT:Lcom/lottie/bm;

    invoke-virtual {p0, v4}, Lcom/lottie/LottieAnimationView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 402
    :cond_5c
    const-string v4, "Composition larger than the screen %dx%d vs %dx%d. Scaling down."

    const/4 v5, 0x4

    new-array v5, v5, [Ljava/lang/Object;

    const/4 v6, 0x0

    .line 404
    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    aput-object v2, v5, v6

    const/4 v2, 0x1

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    aput-object v3, v5, v2

    const/4 v2, 0x2

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    aput-object v0, v5, v2

    const/4 v0, 0x3

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    aput-object v1, v5, v0

    .line 402
    invoke-static {v4, v5}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 410
    :cond_80
    invoke-virtual {p0, v7}, Lcom/lottie/LottieAnimationView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 411
    iget-object v0, p0, Lcom/lottie/LottieAnimationView;->brT:Lcom/lottie/bm;

    invoke-virtual {p0, v0}, Lcom/lottie/LottieAnimationView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 415
    invoke-virtual {p0}, Lcom/lottie/LottieAnimationView;->requestLayout()V

    goto :goto_f
.end method

.method public final fV(Ljava/lang/String;)V
    .registers 3

    .prologue
    .line 449
    iget-object v0, p0, Lcom/lottie/LottieAnimationView;->brT:Lcom/lottie/bm;

    .line 8154
    iput-object p1, v0, Lcom/lottie/bm;->bup:Ljava/lang/String;

    .line 450
    return-void
.end method

.method public invalidateDrawable(Landroid/graphics/drawable/Drawable;)V
    .registers 4

    .prologue
    .line 194
    invoke-virtual {p0}, Lcom/lottie/LottieAnimationView;->getDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    iget-object v1, p0, Lcom/lottie/LottieAnimationView;->brT:Lcom/lottie/bm;

    if-ne v0, v1, :cond_e

    .line 197
    iget-object v0, p0, Lcom/lottie/LottieAnimationView;->brT:Lcom/lottie/bm;

    invoke-super {p0, v0}, Landroid/widget/ImageView;->invalidateDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 202
    :goto_d
    return-void

    .line 200
    :cond_e
    invoke-super {p0, p1}, Landroid/widget/ImageView;->invalidateDrawable(Landroid/graphics/drawable/Drawable;)V

    goto :goto_d
.end method

.method protected onRestoreInstanceState(Landroid/os/Parcelable;)V
    .registers 3

    .prologue
    .line 217
    instance-of v0, p1, Lcom/lottie/LottieAnimationView$SavedState;

    if-nez v0, :cond_8

    .line 218
    invoke-super {p0, p1}, Landroid/widget/ImageView;->onRestoreInstanceState(Landroid/os/Parcelable;)V

    .line 233
    :cond_7
    :goto_7
    return-void

    .line 222
    :cond_8
    check-cast p1, Lcom/lottie/LottieAnimationView$SavedState;

    .line 223
    invoke-virtual {p1}, Lcom/lottie/LottieAnimationView$SavedState;->getSuperState()Landroid/os/Parcelable;

    move-result-object v0

    invoke-super {p0, v0}, Landroid/widget/ImageView;->onRestoreInstanceState(Landroid/os/Parcelable;)V

    .line 224
    iget-object v0, p1, Lcom/lottie/LottieAnimationView$SavedState;->btJ:Ljava/lang/String;

    iput-object v0, p0, Lcom/lottie/LottieAnimationView;->btJ:Ljava/lang/String;

    .line 225
    iget-object v0, p0, Lcom/lottie/LottieAnimationView;->btJ:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_22

    .line 226
    iget-object v0, p0, Lcom/lottie/LottieAnimationView;->btJ:Ljava/lang/String;

    invoke-direct {p0, v0}, Lcom/lottie/LottieAnimationView;->fU(Ljava/lang/String;)V

    .line 228
    :cond_22
    iget v0, p1, Lcom/lottie/LottieAnimationView$SavedState;->progress:F

    invoke-direct {p0, v0}, Lcom/lottie/LottieAnimationView;->setProgress(F)V

    .line 229
    iget-boolean v0, p1, Lcom/lottie/LottieAnimationView$SavedState;->btS:Z

    invoke-virtual {p0, v0}, Lcom/lottie/LottieAnimationView;->aZ(Z)V

    .line 230
    iget-boolean v0, p1, Lcom/lottie/LottieAnimationView$SavedState;->btR:Z

    if-eqz v0, :cond_7

    .line 231
    invoke-virtual {p0}, Lcom/lottie/LottieAnimationView;->Gy()V

    goto :goto_7
.end method

.method protected onSaveInstanceState()Landroid/os/Parcelable;
    .registers 3

    .prologue
    .line 206
    invoke-super {p0}, Landroid/widget/ImageView;->onSaveInstanceState()Landroid/os/Parcelable;

    move-result-object v0

    .line 207
    new-instance v1, Lcom/lottie/LottieAnimationView$SavedState;

    invoke-direct {v1, v0}, Lcom/lottie/LottieAnimationView$SavedState;-><init>(Landroid/os/Parcelable;)V

    .line 208
    iget-object v0, p0, Lcom/lottie/LottieAnimationView;->btJ:Ljava/lang/String;

    iput-object v0, v1, Lcom/lottie/LottieAnimationView$SavedState;->btJ:Ljava/lang/String;

    .line 209
    iget-object v0, p0, Lcom/lottie/LottieAnimationView;->brT:Lcom/lottie/bm;

    invoke-virtual {v0}, Lcom/lottie/bm;->getProgress()F

    move-result v0

    iput v0, v1, Lcom/lottie/LottieAnimationView$SavedState;->progress:F

    .line 210
    iget-object v0, p0, Lcom/lottie/LottieAnimationView;->brT:Lcom/lottie/bm;

    .line 4341
    iget-object v0, v0, Lcom/lottie/bm;->bul:Landroid/animation/ValueAnimator;

    invoke-virtual {v0}, Landroid/animation/ValueAnimator;->isRunning()Z

    move-result v0

    .line 210
    iput-boolean v0, v1, Lcom/lottie/LottieAnimationView$SavedState;->btR:Z

    .line 211
    iget-object v0, p0, Lcom/lottie/LottieAnimationView;->brT:Lcom/lottie/bm;

    invoke-virtual {v0}, Lcom/lottie/bm;->isLooping()Z

    move-result v0

    iput-boolean v0, v1, Lcom/lottie/LottieAnimationView$SavedState;->btS:Z

    .line 212
    return-object v1
.end method

.method public setImageDrawable(Landroid/graphics/drawable/Drawable;)V
    .registers 3

    .prologue
    .line 151
    iget-object v0, p0, Lcom/lottie/LottieAnimationView;->brT:Lcom/lottie/bm;

    if-eq p1, v0, :cond_9

    .line 4258
    iget-object v0, p0, Lcom/lottie/LottieAnimationView;->brT:Lcom/lottie/bm;

    invoke-virtual {v0}, Lcom/lottie/bm;->Gr()V

    .line 154
    :cond_9
    invoke-super {p0, p1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 155
    return-void
.end method

.method public setImageResource(I)V
    .registers 3

    .prologue
    .line 145
    invoke-super {p0, p1}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 3258
    iget-object v0, p0, Lcom/lottie/LottieAnimationView;->brT:Lcom/lottie/bm;

    invoke-virtual {v0}, Lcom/lottie/bm;->Gr()V

    .line 147
    return-void
.end method