apkfuckery/com.discord/smali/e/d/a/e$c.smali
2019-12-06 04:29:40 +01:00

171 lines
3.9 KiB
Smali

.class public final Le/d/a/e$c;
.super Ljava/lang/Object;
.source "LottieCompositionFactory.java"
# interfaces
.implements Ljava/util/concurrent/Callable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Le/d/a/e;->c(Landroid/content/Context;Ljava/lang/String;)Le/d/a/n;
.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<",
"Le/d/a/l<",
"Le/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, Le/d/a/e$c;->d:Landroid/content/Context;
iput-object p2, p0, Le/d/a/e$c;->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 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
iget-object v0, p0, Le/d/a/e$c;->d:Landroid/content/Context;
iget-object v1, p0, Le/d/a/e$c;->e:Ljava/lang/String;
new-instance v2, Le/d/a/v/c;
invoke-direct {v2, v0, v1}, Le/d/a/v/c;-><init>(Landroid/content/Context;Ljava/lang/String;)V
iget-object v0, v2, Le/d/a/v/c;->c:Le/d/a/v/b;
invoke-virtual {v0}, Le/d/a/v/b;->a()Landroidx/core/util/Pair;
move-result-object v0
const/4 v1, 0x0
if-nez v0, :cond_0
goto :goto_1
:cond_0
iget-object v3, v0, Landroidx/core/util/Pair;->first:Ljava/lang/Object;
check-cast v3, Le/d/a/v/a;
iget-object v0, v0, Landroidx/core/util/Pair;->second:Ljava/lang/Object;
check-cast v0, Ljava/io/InputStream;
sget-object v4, Le/d/a/v/a;->e:Le/d/a/v/a;
if-ne v3, v4, :cond_1
new-instance v3, Ljava/util/zip/ZipInputStream;
invoke-direct {v3, v0}, Ljava/util/zip/ZipInputStream;-><init>(Ljava/io/InputStream;)V
iget-object v0, v2, Le/d/a/v/c;->b:Ljava/lang/String;
invoke-static {v3, v0}, Le/d/a/e;->a(Ljava/util/zip/ZipInputStream;Ljava/lang/String;)Le/d/a/l;
move-result-object v0
goto :goto_0
:cond_1
iget-object v3, v2, Le/d/a/v/c;->b:Ljava/lang/String;
invoke-static {v0, v3}, Le/d/a/e;->a(Ljava/io/InputStream;Ljava/lang/String;)Le/d/a/l;
move-result-object v0
:goto_0
iget-object v0, v0, Le/d/a/l;->a:Ljava/lang/Object;
if-eqz v0, :cond_2
move-object v1, v0
check-cast v1, Le/d/a/d;
:cond_2
:goto_1
if-eqz v1, :cond_3
new-instance v0, Le/d/a/l;
invoke-direct {v0, v1}, Le/d/a/l;-><init>(Ljava/lang/Object;)V
goto :goto_2
:cond_3
const-string v0, "Animation for "
invoke-static {v0}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, v2, Le/d/a/v/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}, Le/d/a/x/c;->a(Ljava/lang/String;)V
:try_start_0
invoke-virtual {v2}, Le/d/a/v/c;->a()Le/d/a/l;
move-result-object v0
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_2
:catch_0
move-exception v0
new-instance v1, Le/d/a/l;
invoke-direct {v1, v0}, Le/d/a/l;-><init>(Ljava/lang/Throwable;)V
move-object v0, v1
:goto_2
return-object v0
.end method