apkfuckery/com.discord/smali/f/d/a/e$c.smali

125 lines
3 KiB
Smali
Raw Normal View History

2020-09-16 23:45:23 +00:00
.class public Lf/d/a/e$c;
2020-05-17 12:40:10 +00:00
.super Ljava/lang/Object;
.source "LottieCompositionFactory.java"
# interfaces
.implements Ljava/util/concurrent/Callable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
2020-09-16 23:45:23 +00:00
value = Lf/d/a/e;->c(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Lf/d/a/p;
2020-05-17 12:40:10 +00:00
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
2020-09-16 23:45:23 +00:00
accessFlags = 0x1
2020-05-17 12:40:10 +00:00
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/util/concurrent/Callable<",
2020-09-16 23:45:23 +00:00
"Lf/d/a/n<",
2020-05-17 12:40:10 +00:00
"Lf/d/a/d;",
">;>;"
}
.end annotation
# instance fields
.field public final synthetic d:Landroid/content/Context;
.field public final synthetic e:Ljava/lang/String;
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-05-17 12:40:10 +00:00
.locals 0
iput-object p1, p0, Lf/d/a/e$c;->d:Landroid/content/Context;
iput-object p2, p0, Lf/d/a/e$c;->e:Ljava/lang/String;
2020-09-16 23:45:23 +00:00
iput-object p3, p0, Lf/d/a/e$c;->f:Ljava/lang/String;
2020-05-17 12:40:10 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public call()Ljava/lang/Object;
2020-09-16 23:45:23 +00:00
.locals 4
2020-05-17 12:40:10 +00:00
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
iget-object v0, p0, Lf/d/a/e$c;->d:Landroid/content/Context;
iget-object v1, p0, Lf/d/a/e$c;->e:Ljava/lang/String;
2020-09-16 23:45:23 +00:00
iget-object v2, p0, Lf/d/a/e$c;->f:Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:try_start_0
2020-09-16 23:45:23 +00:00
const-string v3, ".zip"
2020-09-16 21:45:36 +00:00
2020-09-16 23:45:23 +00:00
invoke-virtual {v1, v3}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z
2020-09-16 21:45:36 +00:00
2020-09-16 23:45:23 +00:00
move-result v3
2020-09-16 21:45:36 +00:00
2020-09-16 23:45:23 +00:00
if-eqz v3, :cond_0
2020-09-16 21:45:36 +00:00
2020-09-16 23:45:23 +00:00
new-instance v3, Ljava/util/zip/ZipInputStream;
2020-09-16 21:45:36 +00:00
2020-09-16 23:45:23 +00:00
invoke-virtual {v0}, Landroid/content/Context;->getAssets()Landroid/content/res/AssetManager;
2020-09-16 21:45:36 +00:00
move-result-object v0
2020-09-16 23:45:23 +00:00
invoke-virtual {v0, v1}, Landroid/content/res/AssetManager;->open(Ljava/lang/String;)Ljava/io/InputStream;
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v0
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
invoke-direct {v3, v0}, Ljava/util/zip/ZipInputStream;-><init>(Ljava/io/InputStream;)V
2020-09-16 21:45:36 +00:00
2020-09-16 23:45:23 +00:00
invoke-static {v3, v2}, Lf/d/a/e;->h(Ljava/util/zip/ZipInputStream;Ljava/lang/String;)Lf/d/a/n;
2020-05-17 12:40:10 +00:00
move-result-object v0
2020-09-16 23:45:23 +00:00
goto :goto_0
2020-09-16 21:45:36 +00:00
2020-09-16 23:45:23 +00:00
:cond_0
invoke-virtual {v0}, Landroid/content/Context;->getAssets()Landroid/content/res/AssetManager;
2020-09-16 21:45:36 +00:00
2020-09-16 23:45:23 +00:00
move-result-object v0
2020-09-16 21:45:36 +00:00
2020-09-16 23:45:23 +00:00
invoke-virtual {v0, v1}, Landroid/content/res/AssetManager;->open(Ljava/lang/String;)Ljava/io/InputStream;
2020-05-17 12:40:10 +00:00
move-result-object v0
2020-09-16 23:45:23 +00:00
invoke-static {v0, v2}, Lf/d/a/e;->d(Ljava/io/InputStream;Ljava/lang/String;)Lf/d/a/n;
2020-09-16 21:45:36 +00:00
move-result-object v0
2020-09-16 23:45:23 +00:00
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
2020-09-16 21:45:36 +00:00
2020-09-16 23:45:23 +00:00
goto :goto_0
2020-09-16 21:45:36 +00:00
2020-09-16 23:45:23 +00:00
:catch_0
2020-05-17 12:40:10 +00:00
move-exception v0
2020-09-16 23:45:23 +00:00
new-instance v1, Lf/d/a/n;
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
invoke-direct {v1, v0}, Lf/d/a/n;-><init>(Ljava/lang/Throwable;)V
2020-05-17 12:40:10 +00:00
move-object v0, v1
2020-09-16 23:45:23 +00:00
:goto_0
2020-05-17 12:40:10 +00:00
return-object v0
.end method