apkfuckery/com.discord/smali/f/d/a/e$c.smali
2020-09-16 23:45:23 +00:00

124 lines
3 KiB
Smali

.class public Lf/d/a/e$c;
.super Ljava/lang/Object;
.source "LottieCompositionFactory.java"
# interfaces
.implements Ljava/util/concurrent/Callable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lf/d/a/e;->c(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Lf/d/a/p;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
.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/e$c;->d:Landroid/content/Context;
iput-object p2, p0, Lf/d/a/e$c;->e:Ljava/lang/String;
iput-object p3, p0, Lf/d/a/e$c;->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/e$c;->d:Landroid/content/Context;
iget-object v1, p0, Lf/d/a/e$c;->e:Ljava/lang/String;
iget-object v2, p0, Lf/d/a/e$c;->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;->h(Ljava/util/zip/ZipInputStream;Ljava/lang/String;)Lf/d/a/n;
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;->d(Ljava/io/InputStream;Ljava/lang/String;)Lf/d/a/n;
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/n;
invoke-direct {v1, v0}, Lf/d/a/n;-><init>(Ljava/lang/Throwable;)V
move-object v0, v1
:goto_0
return-object v0
.end method