apkfuckery/com.discord/smali/e/c/a/j.smali
2020-04-27 22:53:11 +02:00

259 lines
5.3 KiB
Smali

.class public Le/c/a/j;
.super Ljava/lang/Object;
.source "ActivityHandler.java"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public final synthetic d:Le/c/a/g;
# direct methods
.method public constructor <init>(Le/c/a/g;)V
.locals 0
iput-object p1, p0, Le/c/a/j;->d:Le/c/a/g;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 11
iget-object v0, p0, Le/c/a/j;->d:Le/c/a/g;
iget-object v1, v0, Le/c/a/g;->h:Le/c/a/g$j;
invoke-virtual {v1}, Le/c/a/g$j;->c()Z
move-result v1
const/4 v2, 0x1
const/4 v3, 0x0
if-eqz v1, :cond_0
goto :goto_2
:cond_0
invoke-virtual {v0}, Le/c/a/g;->c()Z
move-result v1
if-eqz v1, :cond_1
goto :goto_2
:cond_1
iget-object v1, v0, Le/c/a/g;->j:Le/c/a/v;
iget-object v1, v1, Le/c/a/v;->q:Ljava/lang/Double;
if-eqz v1, :cond_2
invoke-virtual {v1}, Ljava/lang/Double;->doubleValue()D
move-result-wide v4
goto :goto_0
:cond_2
const-wide/16 v4, 0x0
:goto_0
const-wide/16 v6, 0x2710
const-wide v8, 0x408f400000000000L # 1000.0
mul-double v8, v8, v4
double-to-long v8, v8
cmp-long v1, v8, v6
if-lez v1, :cond_3
const-wide/16 v8, 0xa
long-to-double v8, v8
sget-object v1, Le/c/a/a2;->a:Ljava/text/DecimalFormat;
invoke-virtual {v1, v4, v5}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;
move-result-object v1
sget-object v4, Le/c/a/a2;->a:Ljava/text/DecimalFormat;
invoke-virtual {v4, v8, v9}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;
move-result-object v4
iget-object v5, v0, Le/c/a/g;->d:Le/c/a/u0;
const/4 v10, 0x2
new-array v10, v10, [Ljava/lang/Object;
aput-object v1, v10, v3
aput-object v4, v10, v2
check-cast v5, Le/c/a/b1;
const-string v1, "Delay start of %s seconds bigger than max allowed value of %s seconds"
invoke-virtual {v5, v1, v10}, Le/c/a/b1;->e(Ljava/lang/String;[Ljava/lang/Object;)V
move-wide v4, v8
goto :goto_1
:cond_3
move-wide v6, v8
:goto_1
sget-object v1, Le/c/a/a2;->a:Ljava/text/DecimalFormat;
invoke-virtual {v1, v4, v5}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;
move-result-object v1
iget-object v4, v0, Le/c/a/g;->d:Le/c/a/u0;
new-array v5, v2, [Ljava/lang/Object;
aput-object v1, v5, v3
check-cast v4, Le/c/a/b1;
const-string v1, "Waiting %s seconds before starting first session"
invoke-virtual {v4, v1, v5}, Le/c/a/b1;->c(Ljava/lang/String;[Ljava/lang/Object;)V
iget-object v1, v0, Le/c/a/g;->g:Le/c/a/z1;
invoke-virtual {v1, v6, v7}, Le/c/a/z1;->a(J)V
iget-object v1, v0, Le/c/a/g;->h:Le/c/a/g$j;
iput-boolean v2, v1, Le/c/a/g$j;->e:Z
iget-object v1, v0, Le/c/a/g;->c:Le/c/a/t;
if-eqz v1, :cond_4
iput-boolean v2, v1, Le/c/a/t;->updatePackages:Z
invoke-virtual {v0}, Le/c/a/g;->k()V
:cond_4
:goto_2
iget-object v0, p0, Le/c/a/j;->d:Le/c/a/g;
iget-object v0, v0, Le/c/a/g;->f:Le/c/a/z1;
if-nez v0, :cond_5
goto :goto_3
:cond_5
invoke-virtual {v0}, Le/c/a/z1;->a()V
:goto_3
iget-object v0, p0, Le/c/a/j;->d:Le/c/a/g;
invoke-virtual {v0}, Le/c/a/g;->b()Z
move-result v1
if-nez v1, :cond_6
goto :goto_4
:cond_6
iget-object v0, v0, Le/c/a/g;->e:Le/c/a/y1;
iget-boolean v1, v0, Le/c/a/y1;->g:Z
if-nez v1, :cond_7
iget-object v1, v0, Le/c/a/y1;->h:Le/c/a/u0;
new-array v2, v2, [Ljava/lang/Object;
iget-object v0, v0, Le/c/a/y1;->c:Ljava/lang/String;
aput-object v0, v2, v3
check-cast v1, Le/c/a/b1;
const-string v0, "%s is already started"
invoke-virtual {v1, v0, v2}, Le/c/a/b1;->d(Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_4
:cond_7
iget-object v1, v0, Le/c/a/y1;->h:Le/c/a/u0;
new-array v2, v2, [Ljava/lang/Object;
iget-object v4, v0, Le/c/a/y1;->c:Ljava/lang/String;
aput-object v4, v2, v3
check-cast v1, Le/c/a/b1;
const-string v4, "%s starting"
invoke-virtual {v1, v4, v2}, Le/c/a/b1;->d(Ljava/lang/String;[Ljava/lang/Object;)V
iget-object v1, v0, Le/c/a/y1;->a:Le/c/a/p0;
new-instance v5, Le/c/a/x1;
invoke-direct {v5, v0}, Le/c/a/x1;-><init>(Le/c/a/y1;)V
iget-wide v6, v0, Le/c/a/y1;->e:J
iget-wide v8, v0, Le/c/a/y1;->f:J
sget-object v10, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
iget-object v4, v1, Le/c/a/p0;->a:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
invoke-virtual/range {v4 .. v10}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->scheduleWithFixedDelay(Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
move-result-object v1
iput-object v1, v0, Le/c/a/y1;->b:Ljava/util/concurrent/ScheduledFuture;
iput-boolean v3, v0, Le/c/a/y1;->g:Z
:goto_4
iget-object v0, p0, Le/c/a/j;->d:Le/c/a/g;
iget-object v0, v0, Le/c/a/g;->d:Le/c/a/u0;
new-array v1, v3, [Ljava/lang/Object;
check-cast v0, Le/c/a/b1;
const-string v2, "Subsession start"
invoke-virtual {v0, v2, v1}, Le/c/a/b1;->d(Ljava/lang/String;[Ljava/lang/Object;)V
iget-object v0, p0, Le/c/a/j;->d:Le/c/a/g;
invoke-static {v0}, Le/c/a/g;->a(Le/c/a/g;)V
return-void
.end method