apkfuckery/com.discord/smali_classes2/j0/a/t1$a.smali
2020-07-14 22:43:59 +00:00

93 lines
2.2 KiB
Smali

.class public final Lj0/a/t1$a;
.super Ljava/lang/Object;
.source "ThreadPoolDispatcher.kt"
# interfaces
.implements Ljava/util/concurrent/ThreadFactory;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lj0/a/t1;-><init>(ILjava/lang/String;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
# instance fields
.field public final synthetic d:Lj0/a/t1;
# direct methods
.method public constructor <init>(Lj0/a/t1;)V
.locals 0
iput-object p1, p0, Lj0/a/t1$a;->d:Lj0/a/t1;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public newThread(Ljava/lang/Runnable;)Ljava/lang/Thread;
.locals 5
new-instance v0, Lj0/a/n1;
iget-object v1, p0, Lj0/a/t1$a;->d:Lj0/a/t1;
const-string v2, "target"
invoke-static {p1, v2}, Li0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v2, p0, Lj0/a/t1$a;->d:Lj0/a/t1;
iget v3, v2, Lj0/a/t1;->g:I
const/4 v4, 0x1
if-ne v3, v4, :cond_0
iget-object v2, v2, Lj0/a/t1;->h:Ljava/lang/String;
goto :goto_0
:cond_0
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
iget-object v3, p0, Lj0/a/t1$a;->d:Lj0/a/t1;
iget-object v3, v3, Lj0/a/t1;->h:Ljava/lang/String;
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v3, "-"
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v3, p0, Lj0/a/t1$a;->d:Lj0/a/t1;
iget-object v3, v3, Lj0/a/t1;->e:Ljava/util/concurrent/atomic/AtomicInteger;
invoke-virtual {v3}, Ljava/util/concurrent/atomic/AtomicInteger;->incrementAndGet()I
move-result v3
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
:goto_0
invoke-direct {v0, v1, p1, v2}, Lj0/a/n1;-><init>(Lj0/a/t1;Ljava/lang/Runnable;Ljava/lang/String;)V
return-object v0
.end method