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

113 lines
2.6 KiB
Smali

.class public 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;->f(Landroid/content/Context;ILjava/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:Ljava/lang/ref/WeakReference;
.field public final synthetic e:Landroid/content/Context;
.field public final synthetic f:I
# direct methods
.method public constructor <init>(Ljava/lang/ref/WeakReference;Landroid/content/Context;I)V
.locals 0
iput-object p1, p0, Lf/d/a/e$d;->d:Ljava/lang/ref/WeakReference;
iput-object p2, p0, Lf/d/a/e$d;->e:Landroid/content/Context;
iput p3, p0, Lf/d/a/e$d;->f:I
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public call()Ljava/lang/Object;
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
iget-object v0, p0, Lf/d/a/e$d;->d:Ljava/lang/ref/WeakReference;
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/content/Context;
if-eqz v0, :cond_0
goto :goto_0
:cond_0
iget-object v0, p0, Lf/d/a/e$d;->e:Landroid/content/Context;
:goto_0
iget v1, p0, Lf/d/a/e$d;->f:I
invoke-static {v0, v1}, Lf/d/a/e;->j(Landroid/content/Context;I)Ljava/lang/String;
move-result-object v2
:try_start_0
invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->openRawResource(I)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 Landroid/content/res/Resources$NotFoundException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_1
: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_1
return-object v0
.end method