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

147 lines
3.1 KiB
Smali

.class public Lf/c/a/g1$a;
.super Ljava/lang/Object;
.source "PackageHandler.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lf/c/a/g1;-><init>(Lf/c/a/o0;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/g1;
# direct methods
.method public constructor <init>(Lf/c/a/g1;)V
.locals 0
iput-object p1, p0, Lf/c/a/g1$a;->d:Lf/c/a/g1;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 8
iget-object v0, p0, Lf/c/a/g1$a;->d:Lf/c/a/g1;
const/4 v1, 0x0
if-eqz v0, :cond_1
new-instance v2, Lf/c/a/i1;
invoke-direct {v2, v0}, Lf/c/a/i1;-><init>(Lf/c/a/r0;)V
iput-object v2, v0, Lf/c/a/g1;->b:Lf/c/a/s0;
new-instance v2, Ljava/util/concurrent/atomic/AtomicBoolean;
invoke-direct {v2}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>()V
iput-object v2, v0, Lf/c/a/g1;->e:Ljava/util/concurrent/atomic/AtomicBoolean;
const-string v2, "Package queue"
const/4 v3, 0x1
const/4 v4, 0x0
:try_start_0
iget-object v5, v0, Lf/c/a/g1;->g:Landroid/content/Context;
const-string v6, "AdjustIoPackageQueue"
const-class v7, Ljava/util/List;
invoke-static {v5, v6, v2, v7}, Lf/c/a/v1;->z(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v5
check-cast v5, Ljava/util/List;
iput-object v5, v0, Lf/c/a/g1;->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 v5
iget-object v6, v0, Lf/c/a/g1;->h:Lf/c/a/q0;
const/4 v7, 0x2
new-array v7, v7, [Ljava/lang/Object;
aput-object v2, v7, v4
invoke-virtual {v5}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object v2
aput-object v2, v7, v3
check-cast v6, Lf/c/a/x0;
const-string v2, "Failed to read %s file (%s)"
invoke-virtual {v6, v2, v7}, Lf/c/a/x0;->b(Ljava/lang/String;[Ljava/lang/Object;)V
iput-object v1, v0, Lf/c/a/g1;->d:Ljava/util/List;
:goto_0
iget-object v1, v0, Lf/c/a/g1;->d:Ljava/util/List;
if-eqz v1, :cond_0
iget-object v0, v0, Lf/c/a/g1;->h:Lf/c/a/q0;
new-array v2, v3, [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, v4
check-cast v0, Lf/c/a/x0;
const-string v1, "Package handler read %d packages"
invoke-virtual {v0, v1, v2}, Lf/c/a/x0;->a(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/g1;->d:Ljava/util/List;
:goto_1
return-void
:cond_1
throw v1
.end method