278 lines
6.3 KiB
Smali
278 lines
6.3 KiB
Smali
.class public Lf/d/a/f;
|
|
.super Ljava/lang/Object;
|
|
.source "LottieCompositionFactory.java"
|
|
|
|
# interfaces
|
|
.implements Ljava/util/concurrent/Callable;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Object;",
|
|
"Ljava/util/concurrent/Callable<",
|
|
"Lf/d/a/n<",
|
|
"Lf/d/a/d;",
|
|
">;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic d:Landroid/content/Context;
|
|
|
|
.field public final synthetic e:Ljava/lang/String;
|
|
|
|
.field public final synthetic f:Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lf/d/a/f;->d:Landroid/content/Context;
|
|
|
|
iput-object p2, p0, Lf/d/a/f;->e:Ljava/lang/String;
|
|
|
|
iput-object p3, p0, Lf/d/a/f;->f:Ljava/lang/String;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public call()Ljava/lang/Object;
|
|
.locals 10
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/lang/Exception;
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lf/d/a/f;->d:Landroid/content/Context;
|
|
|
|
iget-object v1, p0, Lf/d/a/f;->e:Ljava/lang/String;
|
|
|
|
iget-object v2, p0, Lf/d/a/f;->f:Ljava/lang/String;
|
|
|
|
new-instance v3, Lf/d/a/x/c;
|
|
|
|
invoke-direct {v3, v0, v1, v2}, Lf/d/a/x/c;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v0, Lf/d/a/x/a;->e:Lf/d/a/x/a;
|
|
|
|
iget-object v1, v3, Lf/d/a/x/c;->c:Lf/d/a/x/b;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
goto/16 :goto_4
|
|
|
|
:cond_0
|
|
iget-object v4, v3, Lf/d/a/x/c;->b:Ljava/lang/String;
|
|
|
|
sget-object v5, Lf/d/a/x/a;->d:Lf/d/a/x/a;
|
|
|
|
:try_start_0
|
|
new-instance v6, Ljava/io/File;
|
|
|
|
invoke-virtual {v1}, Lf/d/a/x/b;->b()Ljava/io/File;
|
|
|
|
move-result-object v7
|
|
|
|
const/4 v8, 0x0
|
|
|
|
invoke-static {v4, v5, v8}, Lf/d/a/x/b;->a(Ljava/lang/String;Lf/d/a/x/a;Z)Ljava/lang/String;
|
|
|
|
move-result-object v9
|
|
|
|
invoke-direct {v6, v7, v9}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v6}, Ljava/io/File;->exists()Z
|
|
|
|
move-result v7
|
|
|
|
if-eqz v7, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
new-instance v6, Ljava/io/File;
|
|
|
|
invoke-virtual {v1}, Lf/d/a/x/b;->b()Ljava/io/File;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v4, v0, v8}, Lf/d/a/x/b;->a(Ljava/lang/String;Lf/d/a/x/a;Z)Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-direct {v6, v1, v7}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v6}, Ljava/io/File;->exists()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
move-object v6, v2
|
|
|
|
:goto_0
|
|
if-nez v6, :cond_3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
new-instance v1, Ljava/io/FileInputStream;
|
|
|
|
invoke-direct {v1, v6}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
|
|
:try_end_0
|
|
.catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
invoke-virtual {v6}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
const-string v8, ".zip"
|
|
|
|
invoke-virtual {v7, v8}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v7
|
|
|
|
if-eqz v7, :cond_4
|
|
|
|
move-object v5, v0
|
|
|
|
:cond_4
|
|
const-string v7, "Cache hit for "
|
|
|
|
const-string v8, " at "
|
|
|
|
invoke-static {v7, v4, v8}, Lf/e/c/a/a;->K(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v6}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-static {v4}, Lf/d/a/z/c;->a(Ljava/lang/String;)V
|
|
|
|
new-instance v4, Landroidx/core/util/Pair;
|
|
|
|
invoke-direct {v4, v5, v1}, Landroidx/core/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
goto :goto_2
|
|
|
|
:catch_0
|
|
:goto_1
|
|
move-object v4, v2
|
|
|
|
:goto_2
|
|
if-nez v4, :cond_5
|
|
|
|
goto :goto_4
|
|
|
|
:cond_5
|
|
iget-object v1, v4, Landroidx/core/util/Pair;->first:Ljava/lang/Object;
|
|
|
|
check-cast v1, Lf/d/a/x/a;
|
|
|
|
iget-object v4, v4, Landroidx/core/util/Pair;->second:Ljava/lang/Object;
|
|
|
|
check-cast v4, Ljava/io/InputStream;
|
|
|
|
if-ne v1, v0, :cond_6
|
|
|
|
new-instance v0, Ljava/util/zip/ZipInputStream;
|
|
|
|
invoke-direct {v0, v4}, Ljava/util/zip/ZipInputStream;-><init>(Ljava/io/InputStream;)V
|
|
|
|
iget-object v1, v3, Lf/d/a/x/c;->b:Ljava/lang/String;
|
|
|
|
invoke-static {v0, v1}, Lf/d/a/e;->h(Ljava/util/zip/ZipInputStream;Ljava/lang/String;)Lf/d/a/n;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_6
|
|
iget-object v0, v3, Lf/d/a/x/c;->b:Ljava/lang/String;
|
|
|
|
invoke-static {v4, v0}, Lf/d/a/e;->d(Ljava/io/InputStream;Ljava/lang/String;)Lf/d/a/n;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_3
|
|
iget-object v0, v0, Lf/d/a/n;->a:Ljava/lang/Object;
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
move-object v2, v0
|
|
|
|
check-cast v2, Lf/d/a/d;
|
|
|
|
:cond_7
|
|
:goto_4
|
|
if-eqz v2, :cond_8
|
|
|
|
new-instance v0, Lf/d/a/n;
|
|
|
|
invoke-direct {v0, v2}, Lf/d/a/n;-><init>(Ljava/lang/Object;)V
|
|
|
|
goto :goto_5
|
|
|
|
:cond_8
|
|
const-string v0, "Animation for "
|
|
|
|
invoke-static {v0}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, v3, Lf/d/a/x/c;->b:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, " not found in cache. Fetching from network."
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Lf/d/a/z/c;->a(Ljava/lang/String;)V
|
|
|
|
:try_start_1
|
|
invoke-virtual {v3}, Lf/d/a/x/c;->a()Lf/d/a/n;
|
|
|
|
move-result-object v0
|
|
:try_end_1
|
|
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1
|
|
|
|
goto :goto_5
|
|
|
|
:catch_1
|
|
move-exception v0
|
|
|
|
new-instance v1, Lf/d/a/n;
|
|
|
|
invoke-direct {v1, v0}, Lf/d/a/n;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
move-object v0, v1
|
|
|
|
:goto_5
|
|
return-object v0
|
|
.end method
|