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

275 lines
5.8 KiB
Smali
Raw Normal View History

2020-07-08 16:44:49 +00:00
.class public Lf/c/a/a$h;
2020-05-17 12:40:10 +00:00
.super Ljava/lang/Object;
.source "ActivityHandler.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
2020-07-25 02:57:47 +00:00
value = Lf/c/a/a;->onResume()V
2020-05-17 12:40:10 +00:00
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
2020-07-08 16:44:49 +00:00
.field public final synthetic d:Lf/c/a/a;
2020-05-17 12:40:10 +00:00
# direct methods
2020-07-08 16:44:49 +00:00
.method public constructor <init>(Lf/c/a/a;)V
2020-05-17 12:40:10 +00:00
.locals 0
2020-07-08 16:44:49 +00:00
iput-object p1, p0, Lf/c/a/a$h;->d:Lf/c/a/a;
2020-05-17 12:40:10 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
2020-07-25 02:57:47 +00:00
.locals 12
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v0, p0, Lf/c/a/a$h;->d:Lf/c/a/a;
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
iget-object v1, v0, Lf/c/a/a;->h:Lf/c/a/a$n;
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
iget-boolean v2, v1, Lf/c/a/a$n;->d:Z
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
const/4 v3, 0x1
xor-int/2addr v2, v3
const/4 v4, 0x0
if-eqz v2, :cond_0
goto :goto_3
2020-05-17 12:40:10 +00:00
:cond_0
2020-07-25 02:57:47 +00:00
iget-object v2, v0, Lf/c/a/a;->c:Lf/c/a/v;
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
if-eqz v2, :cond_1
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
iget-boolean v1, v2, Lf/c/a/v;->updatePackages:Z
goto :goto_0
2020-05-17 12:40:10 +00:00
:cond_1
2020-07-25 02:57:47 +00:00
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
iget-object v0, p0, Lf/c/a/a$h;->d:Lf/c/a/a;
iget-object v0, v0, Lf/c/a/a;->f:Lf/c/a/f2/k;
if-nez v0, :cond_6
goto :goto_4
:cond_6
invoke-virtual {v0, v4}, Lf/c/a/f2/k;->a(Z)V
:goto_4
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
if-nez v1, :cond_7
goto :goto_5
:cond_7
iget-object v0, v0, Lf/c/a/a;->e:Lf/c/a/f2/j;
iget-boolean v1, v0, Lf/c/a/f2/j;->g:Z
if-nez v1, :cond_8
iget-object v1, v0, Lf/c/a/f2/j;->h:Lf/c/a/w0;
new-array v2, v3, [Ljava/lang/Object;
iget-object v0, v0, Lf/c/a/f2/j;->c:Ljava/lang/String;
aput-object v0, v2, v4
const-string v0, "%s is already started"
invoke-interface {v1, v0, v2}, Lf/c/a/w0;->g(Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_5
:cond_8
iget-object v1, v0, Lf/c/a/f2/j;->h:Lf/c/a/w0;
new-array v2, v3, [Ljava/lang/Object;
iget-object v3, v0, Lf/c/a/f2/j;->c:Ljava/lang/String;
aput-object v3, v2, v4
const-string v3, "%s starting"
invoke-interface {v1, v3, v2}, Lf/c/a/w0;->g(Ljava/lang/String;[Ljava/lang/Object;)V
iget-object v1, v0, Lf/c/a/f2/j;->a:Lf/c/a/f2/a;
new-instance v2, Lf/c/a/f2/i;
invoke-direct {v2, v0}, Lf/c/a/f2/i;-><init>(Lf/c/a/f2/j;)V
iget-wide v7, v0, Lf/c/a/f2/j;->e:J
iget-wide v9, v0, Lf/c/a/f2/j;->f:J
check-cast v1, Lf/c/a/f2/e;
iget-object v5, v1, Lf/c/a/f2/e;->a:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
new-instance v6, Lf/c/a/f2/b;
invoke-direct {v6, v2}, Lf/c/a/f2/b;-><init>(Ljava/lang/Runnable;)V
sget-object v11, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invoke-virtual/range {v5 .. v11}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->scheduleWithFixedDelay(Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
move-result-object v1
iput-object v1, v0, Lf/c/a/f2/j;->b:Ljava/util/concurrent/ScheduledFuture;
iput-boolean v4, v0, Lf/c/a/f2/j;->g:Z
:goto_5
iget-object v0, p0, Lf/c/a/a$h;->d:Lf/c/a/a;
iget-object v0, v0, Lf/c/a/a;->d:Lf/c/a/w0;
new-array v1, v4, [Ljava/lang/Object;
const-string v2, "Subsession start"
invoke-interface {v0, v2, v1}, Lf/c/a/w0;->g(Ljava/lang/String;[Ljava/lang/Object;)V
iget-object v0, p0, Lf/c/a/a$h;->d:Lf/c/a/a;
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
invoke-static {v0}, Lf/c/a/a;->p(Lf/c/a/a;)V
2020-05-17 12:40:10 +00:00
return-void
.end method