apkfuckery/com.discord/smali/f/c/a/p0$a.smali
2020-05-11 21:22:21 +02:00

99 lines
2.7 KiB
Smali

.class public Lf/c/a/p0$a;
.super Ljava/lang/Object;
.source "CustomScheduledExecutor.java"
# interfaces
.implements Ljava/util/concurrent/ThreadFactory;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lf/c/a/p0;-><init>(Ljava/lang/String;Z)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic d:Ljava/lang/String;
.field public final synthetic e:Lf/c/a/p0;
# direct methods
.method public constructor <init>(Lf/c/a/p0;Ljava/lang/String;)V
.locals 0
iput-object p1, p0, Lf/c/a/p0$a;->e:Lf/c/a/p0;
iput-object p2, p0, Lf/c/a/p0$a;->d:Ljava/lang/String;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public newThread(Ljava/lang/Runnable;)Ljava/lang/Thread;
.locals 3
invoke-static {}, Ljava/util/concurrent/Executors;->defaultThreadFactory()Ljava/util/concurrent/ThreadFactory;
move-result-object v0
new-instance v1, Lf/c/a/p0$c;
iget-object v2, p0, Lf/c/a/p0$a;->e:Lf/c/a/p0;
invoke-direct {v1, v2, p1}, Lf/c/a/p0$c;-><init>(Lf/c/a/p0;Ljava/lang/Runnable;)V
invoke-interface {v0, v1}, Ljava/util/concurrent/ThreadFactory;->newThread(Ljava/lang/Runnable;)Ljava/lang/Thread;
move-result-object p1
const/4 v0, 0x1
invoke-virtual {p1, v0}, Ljava/lang/Thread;->setPriority(I)V
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Adjust-"
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/Thread;->getName()Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v2, "-"
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v2, p0, Lf/c/a/p0$a;->d:Ljava/lang/String;
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-virtual {p1, v1}, Ljava/lang/Thread;->setName(Ljava/lang/String;)V
invoke-virtual {p1, v0}, Ljava/lang/Thread;->setDaemon(Z)V
new-instance v0, Lf/c/a/p0$a$a;
invoke-direct {v0, p0}, Lf/c/a/p0$a$a;-><init>(Lf/c/a/p0$a;)V
invoke-virtual {p1, v0}, Ljava/lang/Thread;->setUncaughtExceptionHandler(Ljava/lang/Thread$UncaughtExceptionHandler;)V
return-object p1
.end method