apkfuckery/com.discord/smali/f/d/a/f.smali

279 lines
6.3 KiB
Smali
Raw Normal View History

2020-09-16 23:45:23 +00:00
.class public Lf/d/a/f;
2020-07-08 16:44:49 +00:00
.super Ljava/lang/Object;
.source "LottieCompositionFactory.java"
2020-05-17 12:40:10 +00:00
# interfaces
2020-07-08 16:44:49 +00:00
.implements Ljava/util/concurrent/Callable;
2020-05-17 12:40:10 +00:00
# annotations
2020-07-08 16:44:49 +00:00
.annotation system Ldalvik/annotation/Signature;
2020-05-17 12:40:10 +00:00
value = {
2020-07-08 16:44:49 +00:00
"Ljava/lang/Object;",
"Ljava/util/concurrent/Callable<",
2020-09-16 23:45:23 +00:00
"Lf/d/a/n<",
2020-07-08 16:44:49 +00:00
"Lf/d/a/d;",
">;>;"
2020-05-17 12:40:10 +00:00
}
.end annotation
# instance fields
2020-09-16 23:45:23 +00:00
.field public final synthetic d:Landroid/content/Context;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
.field public final synthetic e:Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
.field public final synthetic f:Ljava/lang/String;
2020-05-17 12:40:10 +00:00
# direct methods
2020-09-16 23:45:23 +00:00
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
.locals 0
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
iput-object p1, p0, Lf/d/a/f;->d:Landroid/content/Context;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iput-object p2, p0, Lf/d/a/f;->e:Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
iput-object p3, p0, Lf/d/a/f;->f:Ljava/lang/String;
2020-07-08 16:44:49 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-05-17 12:40:10 +00:00
return-void
.end method
# virtual methods
2020-07-08 16:44:49 +00:00
.method public call()Ljava/lang/Object;
2020-09-16 23:45:23 +00:00
.locals 10
2020-07-08 16:44:49 +00:00
.annotation system Ldalvik/annotation/Throws;
2020-05-17 12:40:10 +00:00
value = {
2020-07-08 16:44:49 +00:00
Ljava/lang/Exception;
2020-05-17 12:40:10 +00:00
}
.end annotation
2020-09-16 23:45:23 +00:00
iget-object v0, p0, Lf/d/a/f;->d:Landroid/content/Context;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v1, p0, Lf/d/a/f;->e:Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
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 "
2020-11-02 23:44:01 +00:00
invoke-static {v7, v4, v8}, Lf/e/c/a/a;->K(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-09-16 23:45:23 +00:00
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;
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
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 "
2020-11-02 23:44:01 +00:00
invoke-static {v0}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-05-17 12:40:10 +00:00
move-result-object v0
2020-09-16 23:45:23 +00:00
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
2020-07-08 16:44:49 +00:00
return-object v0
2020-05-17 12:40:10 +00:00
.end method