apkfuckery/com.discord/smali/f/c/a/a$h.smali

275 lines
5.8 KiB
Smali
Raw Normal View History

2020-11-12 02:11:44 +00:00
.class public Lf/c/a/a$h;
.super Ljava/lang/Object;
.source "ActivityHandler.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lf/c/a/a;->onResume()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic d:Lf/c/a/a;
# direct methods
.method public constructor <init>(Lf/c/a/a;)V
.locals 0
iput-object p1, p0, Lf/c/a/a$h;->d:Lf/c/a/a;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
2020-11-21 21:10:53 +00:00
.locals 12
2020-11-12 02:11:44 +00:00
iget-object v0, p0, Lf/c/a/a$h;->d:Lf/c/a/a;
2020-11-21 21:10:53 +00:00
iget-object v1, v0, Lf/c/a/a;->h:Lf/c/a/a$n;
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
iget-boolean v2, v1, Lf/c/a/a$n;->d:Z
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
const/4 v3, 0x1
xor-int/2addr v2, v3
const/4 v4, 0x0
if-eqz v2, :cond_0
goto :goto_3
:cond_0
iget-object v2, v0, Lf/c/a/a;->c:Lf/c/a/v;
if-eqz v2, :cond_1
iget-boolean v1, v2, Lf/c/a/v;->updatePackages:Z
goto :goto_0
:cond_1
iget-boolean v1, v1, Lf/c/a/a$n;->e:Z
:goto_0
if-eqz v1, :cond_2
goto :goto_3
:cond_2
iget-object v1, v0, Lf/c/a/a;->m:Lf/c/a/w;
iget-object v1, v1, Lf/c/a/w;->t:Ljava/lang/Double;
if-eqz v1, :cond_3
invoke-virtual {v1}, Ljava/lang/Double;->doubleValue()D
move-result-wide v1
goto :goto_1
:cond_3
const-wide/16 v1, 0x0
:goto_1
const-wide/16 v5, 0x2710
const-wide v7, 0x408f400000000000L # 1000.0
mul-double v7, v7, v1
double-to-long v7, v7
cmp-long v9, v7, v5
if-lez v9, :cond_4
const-wide/16 v7, 0xa
long-to-double v7, v7
sget-object v9, Lf/c/a/e2;->a:Ljava/text/DecimalFormat;
invoke-virtual {v9, v1, v2}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;
move-result-object v1
sget-object v2, Lf/c/a/e2;->a:Ljava/text/DecimalFormat;
invoke-virtual {v2, v7, v8}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;
move-result-object v2
iget-object v9, v0, Lf/c/a/a;->d:Lf/c/a/w0;
const/4 v10, 0x2
new-array v10, v10, [Ljava/lang/Object;
aput-object v1, v10, v4
aput-object v2, v10, v3
const-string v1, "Delay start of %s seconds bigger than max allowed value of %s seconds"
invoke-interface {v9, v1, v10}, Lf/c/a/w0;->d(Ljava/lang/String;[Ljava/lang/Object;)V
move-wide v1, v7
goto :goto_2
:cond_4
move-wide v5, v7
:goto_2
sget-object v7, Lf/c/a/e2;->a:Ljava/text/DecimalFormat;
invoke-virtual {v7, v1, v2}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;
move-result-object v1
iget-object v2, v0, Lf/c/a/a;->d:Lf/c/a/w0;
new-array v7, v3, [Ljava/lang/Object;
aput-object v1, v7, v4
const-string v1, "Waiting %s seconds before starting first session"
invoke-interface {v2, v1, v7}, Lf/c/a/w0;->h(Ljava/lang/String;[Ljava/lang/Object;)V
iget-object v1, v0, Lf/c/a/a;->g:Lf/c/a/f2/k;
invoke-virtual {v1, v5, v6}, Lf/c/a/f2/k;->c(J)V
iget-object v1, v0, Lf/c/a/a;->h:Lf/c/a/a$n;
iput-boolean v3, v1, Lf/c/a/a$n;->e:Z
iget-object v1, v0, Lf/c/a/a;->c:Lf/c/a/v;
if-eqz v1, :cond_5
iput-boolean v3, v1, Lf/c/a/v;->updatePackages:Z
invoke-virtual {v0}, Lf/c/a/a;->P()V
:cond_5
:goto_3
2020-11-12 02:11:44 +00:00
iget-object v0, p0, Lf/c/a/a$h;->d:Lf/c/a/a;
2020-11-21 21:10:53 +00:00
iget-object v0, v0, Lf/c/a/a;->f:Lf/c/a/f2/k;
if-nez v0, :cond_6
goto :goto_4
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
:cond_6
invoke-virtual {v0, v4}, Lf/c/a/f2/k;->a(Z)V
:goto_4
2020-11-12 02:11:44 +00:00
iget-object v0, p0, Lf/c/a/a$h;->d:Lf/c/a/a;
invoke-virtual {v0}, Lf/c/a/a;->u()Z
move-result v1
2020-11-21 21:10:53 +00:00
if-nez v1, :cond_7
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
goto :goto_5
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
:cond_7
iget-object v0, v0, Lf/c/a/a;->e:Lf/c/a/f2/j;
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
iget-boolean v1, v0, Lf/c/a/f2/j;->g:Z
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
if-nez v1, :cond_8
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
iget-object v1, v0, Lf/c/a/f2/j;->h:Lf/c/a/w0;
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
new-array v2, v3, [Ljava/lang/Object;
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
iget-object v0, v0, Lf/c/a/f2/j;->c:Ljava/lang/String;
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
aput-object v0, v2, v4
2020-11-12 02:11:44 +00:00
const-string v0, "%s is already started"
2020-11-21 21:10:53 +00:00
invoke-interface {v1, v0, v2}, Lf/c/a/w0;->g(Ljava/lang/String;[Ljava/lang/Object;)V
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
goto :goto_5
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
:cond_8
iget-object v1, v0, Lf/c/a/f2/j;->h:Lf/c/a/w0;
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
new-array v2, v3, [Ljava/lang/Object;
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
iget-object v3, v0, Lf/c/a/f2/j;->c:Ljava/lang/String;
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
aput-object v3, v2, v4
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
const-string v3, "%s starting"
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
invoke-interface {v1, v3, v2}, Lf/c/a/w0;->g(Ljava/lang/String;[Ljava/lang/Object;)V
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
iget-object v1, v0, Lf/c/a/f2/j;->a:Lf/c/a/f2/a;
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
new-instance v2, Lf/c/a/f2/i;
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
invoke-direct {v2, v0}, Lf/c/a/f2/i;-><init>(Lf/c/a/f2/j;)V
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
iget-wide v7, v0, Lf/c/a/f2/j;->e:J
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
iget-wide v9, v0, Lf/c/a/f2/j;->f:J
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
check-cast v1, Lf/c/a/f2/e;
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
iget-object v5, v1, Lf/c/a/f2/e;->a:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
new-instance v6, Lf/c/a/f2/b;
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
invoke-direct {v6, v2}, Lf/c/a/f2/b;-><init>(Ljava/lang/Runnable;)V
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
sget-object v11, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
invoke-virtual/range {v5 .. v11}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->scheduleWithFixedDelay(Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
2020-11-12 02:11:44 +00:00
move-result-object v1
2020-11-21 21:10:53 +00:00
iput-object v1, v0, Lf/c/a/f2/j;->b:Ljava/util/concurrent/ScheduledFuture;
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
iput-boolean v4, v0, Lf/c/a/f2/j;->g:Z
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
:goto_5
2020-11-12 02:11:44 +00:00
iget-object v0, p0, Lf/c/a/a$h;->d:Lf/c/a/a;
2020-11-21 21:10:53 +00:00
iget-object v0, v0, Lf/c/a/a;->d:Lf/c/a/w0;
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
new-array v1, v4, [Ljava/lang/Object;
2020-11-12 02:11:44 +00:00
const-string v2, "Subsession start"
2020-11-21 21:10:53 +00:00
invoke-interface {v0, v2, v1}, Lf/c/a/w0;->g(Ljava/lang/String;[Ljava/lang/Object;)V
2020-11-12 02:11:44 +00:00
iget-object v0, p0, Lf/c/a/a$h;->d:Lf/c/a/a;
invoke-static {v0}, Lf/c/a/a;->p(Lf/c/a/a;)V
return-void
.end method