apkfuckery/com.discord/smali/f/c/a/o1$a.smali
2020-07-25 02:57:47 +00:00

146 lines
3.2 KiB
Smali

.class public Lf/c/a/o1$a;
.super Ljava/lang/Object;
.source "PackageHandler.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lf/c/a/o1;-><init>(Lf/c/a/u0;Landroid/content/Context;Z)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic d:Lf/c/a/o1;
# direct methods
.method public constructor <init>(Lf/c/a/o1;)V
.locals 0
iput-object p1, p0, Lf/c/a/o1$a;->d:Lf/c/a/o1;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 7
iget-object v0, p0, Lf/c/a/o1$a;->d:Lf/c/a/o1;
iget-object v1, v0, Lf/c/a/o1;->c:Ljava/lang/ref/WeakReference;
invoke-virtual {v1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lf/c/a/u0;
new-instance v2, Lf/c/a/q1;
invoke-direct {v2, v1, v0}, Lf/c/a/q1;-><init>(Lf/c/a/u0;Lf/c/a/x0;)V
iput-object v2, v0, Lf/c/a/o1;->b:Lf/c/a/y0;
new-instance v1, Ljava/util/concurrent/atomic/AtomicBoolean;
invoke-direct {v1}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>()V
iput-object v1, v0, Lf/c/a/o1;->e:Ljava/util/concurrent/atomic/AtomicBoolean;
const-string v1, "Package queue"
const/4 v2, 0x1
const/4 v3, 0x0
:try_start_0
iget-object v4, v0, Lf/c/a/o1;->g:Landroid/content/Context;
const-string v5, "AdjustIoPackageQueue"
const-class v6, Ljava/util/List;
invoke-static {v4, v5, v1, v6}, Lf/c/a/e2;->C(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v4
check-cast v4, Ljava/util/List;
iput-object v4, v0, Lf/c/a/o1;->d:Ljava/util/List;
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception v4
iget-object v5, v0, Lf/c/a/o1;->h:Lf/c/a/w0;
const/4 v6, 0x2
new-array v6, v6, [Ljava/lang/Object;
aput-object v1, v6, v3
invoke-virtual {v4}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object v1
aput-object v1, v6, v2
const-string v1, "Failed to read %s file (%s)"
invoke-interface {v5, v1, v6}, Lf/c/a/w0;->e(Ljava/lang/String;[Ljava/lang/Object;)V
const/4 v1, 0x0
iput-object v1, v0, Lf/c/a/o1;->d:Ljava/util/List;
:goto_0
iget-object v1, v0, Lf/c/a/o1;->d:Ljava/util/List;
if-eqz v1, :cond_0
iget-object v0, v0, Lf/c/a/o1;->h:Lf/c/a/w0;
new-array v2, v2, [Ljava/lang/Object;
invoke-interface {v1}, Ljava/util/List;->size()I
move-result v1
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
aput-object v1, v2, v3
const-string v1, "Package handler read %d packages"
invoke-interface {v0, v1, v2}, Lf/c/a/w0;->f(Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_1
:cond_0
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
iput-object v1, v0, Lf/c/a/o1;->d:Ljava/util/List;
:goto_1
return-void
.end method