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

262 lines
5.4 KiB
Smali
Raw Normal View History

2020-07-08 16:44:49 +00:00
.class public Lf/c/a/a$f;
.super Ljava/lang/Object;
.source "ActivityHandler.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lf/c/a/a;->t(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:Z
.field public final synthetic e:Ljava/lang/String;
.field public final synthetic f:Lf/c/a/a;
# direct methods
.method public constructor <init>(Lf/c/a/a;ZLjava/lang/String;)V
.locals 0
iput-object p1, p0, Lf/c/a/a$f;->f:Lf/c/a/a;
iput-boolean p2, p0, Lf/c/a/a$f;->d:Z
iput-object p3, p0, Lf/c/a/a$f;->e:Ljava/lang/String;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 10
iget-boolean v0, p0, Lf/c/a/a$f;->d:Z
if-nez v0, :cond_0
new-instance v0, Lf/c/a/r1;
iget-object v1, p0, Lf/c/a/a$f;->f:Lf/c/a/a;
iget-object v1, v1, Lf/c/a/a;->j:Lf/c/a/r;
iget-object v1, v1, Lf/c/a/r;->a:Landroid/content/Context;
invoke-direct {v0, v1}, Lf/c/a/r1;-><init>(Landroid/content/Context;)V
iget-object v1, p0, Lf/c/a/a$f;->e:Ljava/lang/String;
monitor-enter v0
:try_start_0
const-string v2, "push_token"
invoke-virtual {v0, v2, v1}, Lf/c/a/r1;->i(Ljava/lang/String;Ljava/lang/String;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit v0
goto :goto_0
:catchall_0
move-exception v1
monitor-exit v0
throw v1
:cond_0
:goto_0
iget-object v0, p0, Lf/c/a/a$f;->f:Lf/c/a/a;
iget-object v1, v0, Lf/c/a/a;->c:Lf/c/a/q;
if-nez v1, :cond_1
return-void
:cond_1
iget-object v2, p0, Lf/c/a/a$f;->e:Ljava/lang/String;
invoke-virtual {v0, v1}, Lf/c/a/a;->n(Lf/c/a/q;)Z
move-result v1
if-nez v1, :cond_2
goto/16 :goto_1
:cond_2
invoke-virtual {v0}, Lf/c/a/a;->o()Z
move-result v1
if-nez v1, :cond_3
goto/16 :goto_1
:cond_3
if-nez v2, :cond_4
goto/16 :goto_1
:cond_4
iget-object v1, v0, Lf/c/a/a;->c:Lf/c/a/q;
iget-object v1, v1, Lf/c/a/q;->pushToken:Ljava/lang/String;
invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_5
goto :goto_1
:cond_5
iget-object v1, v0, Lf/c/a/a;->c:Lf/c/a/q;
iput-object v2, v1, Lf/c/a/q;->pushToken:Ljava/lang/String;
invoke-virtual {v0}, Lf/c/a/a;->G()V
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v8
new-instance v1, Lf/c/a/f1;
iget-object v4, v0, Lf/c/a/a;->j:Lf/c/a/r;
iget-object v5, v0, Lf/c/a/a;->i:Lf/c/a/m0;
iget-object v6, v0, Lf/c/a/a;->c:Lf/c/a/q;
iget-object v7, v0, Lf/c/a/a;->n:Lf/c/a/p1;
move-object v3, v1
invoke-direct/range {v3 .. v9}, Lf/c/a/f1;-><init>(Lf/c/a/r;Lf/c/a/m0;Lf/c/a/q;Lf/c/a/p1;J)V
invoke-virtual {v1}, Lf/c/a/f1;->m()Ljava/util/Map;
move-result-object v2
const-string v3, "source"
const-string v4, "push"
invoke-static {v2, v3, v4}, Lf/c/a/f1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
sget-object v3, Lf/c/a/o;->k:Lf/c/a/o;
invoke-virtual {v1, v3}, Lf/c/a/f1;->k(Lf/c/a/o;)Lf/c/a/p;
move-result-object v1
const-string v3, "/sdk_info"
iput-object v3, v1, Lf/c/a/p;->path:Ljava/lang/String;
const-string v3, ""
iput-object v3, v1, Lf/c/a/p;->suffix:Ljava/lang/String;
iput-object v2, v1, Lf/c/a/p;->parameters:Ljava/util/Map;
iget-object v2, v0, Lf/c/a/a;->b:Lf/c/a/r0;
invoke-interface {v2, v1}, Lf/c/a/r0;->d(Lf/c/a/p;)V
iget-object v2, v0, Lf/c/a/a;->j:Lf/c/a/r;
iget-object v2, v2, Lf/c/a/r;->a:Landroid/content/Context;
const/4 v3, 0x0
const-string v4, "adjust_preferences"
invoke-virtual {v2, v4, v3}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
move-result-object v2
:try_start_1
const-string v4, "push_token"
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_2
:try_start_2
invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
move-result-object v2
invoke-interface {v2, v4}, Landroid/content/SharedPreferences$Editor;->remove(Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;
move-result-object v2
invoke-interface {v2}, Landroid/content/SharedPreferences$Editor;->apply()V
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
iget-object v2, v0, Lf/c/a/a;->j:Lf/c/a/r;
iget-boolean v2, v2, Lf/c/a/r;->f:Z
if-eqz v2, :cond_6
iget-object v0, v0, Lf/c/a/a;->d:Lf/c/a/q0;
const/4 v2, 0x1
new-array v2, v2, [Ljava/lang/Object;
iget-object v1, v1, Lf/c/a/p;->suffix:Ljava/lang/String;
aput-object v1, v2, v3
check-cast v0, Lf/c/a/x0;
const-string v1, "Buffered event %s"
invoke-virtual {v0, v1, v2}, Lf/c/a/x0;->c(Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_1
:cond_6
iget-object v0, v0, Lf/c/a/a;->b:Lf/c/a/r0;
invoke-interface {v0}, Lf/c/a/r0;->b()V
:goto_1
return-void
:catchall_1
move-exception v0
:try_start_3
throw v0
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_2
:catchall_2
move-exception v0
throw v0
.end method