apkfuckery/com.discord/smali/f/d/a/e$d.smali
2020-07-08 16:44:49 +00:00

132 lines
3.3 KiB
Smali

.class public final Lf/d/a/e$d;
.super Ljava/lang/Object;
.source "LottieCompositionFactory.java"
# interfaces
.implements Ljava/util/concurrent/Callable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lf/d/a/e;->b(Landroid/content/Context;Ljava/lang/String;)Lf/d/a/o;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/util/concurrent/Callable<",
"Lf/d/a/m<",
"Lf/d/a/d;",
">;>;"
}
.end annotation
# instance fields
.field public final synthetic d:Landroid/content/Context;
.field public final synthetic e:Ljava/lang/String;
# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
.locals 0
iput-object p1, p0, Lf/d/a/e$d;->d:Landroid/content/Context;
iput-object p2, p0, Lf/d/a/e$d;->e: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$d;->d:Landroid/content/Context;
iget-object v1, p0, Lf/d/a/e$d;->e:Ljava/lang/String;
:try_start_0
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "asset_"
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
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;->g(Ljava/util/zip/ZipInputStream;Ljava/lang/String;)Lf/d/a/m;
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;->c(Ljava/io/InputStream;Ljava/lang/String;)Lf/d/a/m;
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/m;
invoke-direct {v1, v0}, Lf/d/a/m;-><init>(Ljava/lang/Throwable;)V
move-object v0, v1
:goto_0
return-object v0
.end method