apkfuckery/com.discord/smali/f/d/a/g.smali
2020-11-21 22:11:07 +00:00

115 lines
2.7 KiB
Smali

.class public Lf/d/a/g;
.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/p<",
"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/g;->d:Landroid/content/Context;
iput-object p2, p0, Lf/d/a/g;->e:Ljava/lang/String;
iput-object p3, p0, Lf/d/a/g;->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 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
iget-object v0, p0, Lf/d/a/g;->d:Landroid/content/Context;
iget-object v1, p0, Lf/d/a/g;->e:Ljava/lang/String;
iget-object v2, p0, Lf/d/a/g;->f:Ljava/lang/String;
:try_start_0
const-string v3, ".zip"
invoke-virtual {v1, v3}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z
move-result v3
if-eqz v3, :cond_0
new-instance v3, Ljava/util/zip/ZipInputStream;
invoke-virtual {v0}, Landroid/content/Context;->getAssets()Landroid/content/res/AssetManager;
move-result-object v0
invoke-virtual {v0, v1}, Landroid/content/res/AssetManager;->open(Ljava/lang/String;)Ljava/io/InputStream;
move-result-object v0
invoke-direct {v3, v0}, Ljava/util/zip/ZipInputStream;-><init>(Ljava/io/InputStream;)V
invoke-static {v3, v2}, Lf/d/a/e;->d(Ljava/util/zip/ZipInputStream;Ljava/lang/String;)Lf/d/a/p;
move-result-object v0
goto :goto_0
:cond_0
invoke-virtual {v0}, Landroid/content/Context;->getAssets()Landroid/content/res/AssetManager;
move-result-object v0
invoke-virtual {v0, v1}, Landroid/content/res/AssetManager;->open(Ljava/lang/String;)Ljava/io/InputStream;
move-result-object v0
invoke-static {v0, v2}, Lf/d/a/e;->b(Ljava/io/InputStream;Ljava/lang/String;)Lf/d/a/p;
move-result-object v0
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception v0
new-instance v1, Lf/d/a/p;
invoke-direct {v1, v0}, Lf/d/a/p;-><init>(Ljava/lang/Throwable;)V
move-object v0, v1
:goto_0
return-object v0
.end method