2020-05-17 12:40:10 +00:00
|
|
|
.class public final Lcom/discord/workers/TimedMuteWorker;
|
|
|
|
.super Landroidx/work/Worker;
|
|
|
|
.source "TimedMuteWorker.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public a:Lcom/discord/utilities/time/Clock;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroidx/work/WorkerParameters;)V
|
|
|
|
.locals 1
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
const/4 v0, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
if-eqz p1, :cond_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
if-eqz p2, :cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2}, Landroidx/work/Worker;-><init>(Landroid/content/Context;Landroidx/work/WorkerParameters;)V
|
|
|
|
|
|
|
|
invoke-static {}, Lcom/discord/utilities/time/ClockFactory;->get()Lcom/discord/utilities/time/Clock;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/workers/TimedMuteWorker;->a:Lcom/discord/utilities/time/Clock;
|
|
|
|
|
|
|
|
return-void
|
2020-09-16 21:45:36 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "params"
|
|
|
|
|
|
|
|
invoke-static {p1}, Lk0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const-string p1, "context"
|
|
|
|
|
|
|
|
invoke-static {p1}, Lk0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v0
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public doWork()Landroidx/work/ListenableWorker$Result;
|
2020-09-16 21:45:36 +00:00
|
|
|
.locals 23
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const-string v1, " until "
|
|
|
|
|
|
|
|
const-class v2, Lcom/discord/workers/TimedMuteWorker;
|
|
|
|
|
2020-07-31 02:11:25 +00:00
|
|
|
sget-object v3, Lcom/discord/app/AppLog;->d:Lcom/discord/app/AppLog;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
const-string v9, "javaClass.simpleName"
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-static {v4, v9}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
|
|
|
const-string v5, "Starting for ["
|
|
|
|
|
|
|
|
invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/work/ListenableWorker;->getInputData()Landroidx/work/Data;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
const-string v6, "inputData"
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-static {v5, v6}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v5}, Landroidx/work/Data;->getKeyValueMap()Ljava/util/Map;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const/16 v5, 0x5d
|
|
|
|
|
|
|
|
invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
const/4 v7, 0x4
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
invoke-static/range {v3 .. v8}, Lcom/discord/utilities/logging/Logger;->i$default(Lcom/discord/utilities/logging/Logger;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;ILjava/lang/Object;)V
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/utilities/fcm/NotificationClient;->INSTANCE:Lcom/discord/utilities/fcm/NotificationClient;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/utilities/fcm/NotificationClient;->isAuthed()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const-string v3, "Result.failure()"
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2020-07-31 02:11:25 +00:00
|
|
|
sget-object v10, Lcom/discord/app/AppLog;->d:Lcom/discord/app/AppLog;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v11
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-static {v11, v9}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 v13, 0x0
|
|
|
|
|
|
|
|
const/4 v14, 0x4
|
|
|
|
|
|
|
|
const/4 v15, 0x0
|
|
|
|
|
|
|
|
const-string v12, "Not authenticated. Aborting job request."
|
|
|
|
|
|
|
|
invoke-static/range {v10 .. v15}, Lcom/discord/utilities/logging/Logger;->d$default(Lcom/discord/utilities/logging/Logger;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;ILjava/lang/Object;)V
|
|
|
|
|
|
|
|
invoke-static {}, Landroidx/work/ListenableWorker$Result;->failure()Landroidx/work/ListenableWorker$Result;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-static {v0, v3}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
sget-object v0, Lcom/discord/utilities/io/NetworkUtils;->INSTANCE:Lcom/discord/utilities/io/NetworkUtils;
|
|
|
|
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/work/ListenableWorker;->getApplicationContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
const-string v5, "applicationContext"
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-static {v4, v5}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
const/4 v5, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
const/4 v6, 0x2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
invoke-static {v0, v4, v5, v6, v5}, Lcom/discord/utilities/io/NetworkUtils;->isDeviceConnected$default(Lcom/discord/utilities/io/NetworkUtils;Landroid/content/Context;Landroid/content/Intent;ILjava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
const-string v4, "Result.retry()"
|
|
|
|
|
2020-05-17 12:40:10 +00:00
|
|
|
if-nez v0, :cond_1
|
|
|
|
|
|
|
|
invoke-static {}, Landroidx/work/ListenableWorker$Result;->retry()Landroidx/work/ListenableWorker$Result;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-static {v0, v4}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/work/ListenableWorker;->getInputData()Landroidx/work/Data;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
const-string v7, "com.discord.intent.extra.EXTRA_GUILD_ID"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
const-wide/16 v10, -0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v0, v7, v10, v11}, Landroidx/work/Data;->getLong(Ljava/lang/String;J)J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
move-result-wide v7
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/work/ListenableWorker;->getInputData()Landroidx/work/Data;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
const-string v12, "com.discord.intent.extra.EXTRA_CHANNEL_ID"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v0, v12, v10, v11}, Landroidx/work/Data;->getLong(Ljava/lang/String;J)J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
move-result-wide v14
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/work/ListenableWorker;->getInputData()Landroidx/work/Data;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
const-wide/16 v12, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
const-string v5, "com.discord.intent.extra.EXTRA_UNTIL_TIMESTAMP_MS"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v0, v5, v12, v13}, Landroidx/work/Data;->getLong(Ljava/lang/String;J)J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
move-result-wide v12
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
cmp-long v0, v7, v10
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz v0, :cond_6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
cmp-long v0, v14, v10
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
|
|
|
|
goto/16 :goto_3
|
|
|
|
|
|
|
|
:cond_2
|
2020-09-16 21:45:36 +00:00
|
|
|
move-object/from16 v5, p0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
iget-object v0, v5, Lcom/discord/workers/TimedMuteWorker;->a:Lcom/discord/utilities/time/Clock;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-interface {v0}, Lcom/discord/utilities/time/Clock;->currentTimeMillis()J
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
move-result-wide v10
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const-string v0, "Result.success()"
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
cmp-long v17, v10, v12
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
if-lez v17, :cond_3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-static {}, Landroidx/work/ListenableWorker$Result;->success()Landroidx/work/ListenableWorker$Result;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-static {v1, v0}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-object v1
|
|
|
|
|
|
|
|
:cond_3
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-static {v12, v13}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
move-result-object v10
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
const/4 v11, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-static {v10, v11, v6, v11}, Lcom/discord/utilities/time/TimeUtils;->toUTCDateTime$default(Ljava/lang/Long;Ljava/lang/String;ILjava/lang/Object;)Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
move-result-object v6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
new-instance v10, Lcom/discord/restapi/RestAPIParams$UserGuildSettings;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
new-instance v11, Lcom/discord/restapi/RestAPIParams$UserGuildSettings$ChannelOverride;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
sget-object v18, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
new-instance v12, Lcom/discord/models/domain/ModelMuteConfig;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-direct {v12, v6}, Lcom/discord/models/domain/ModelMuteConfig;-><init>(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
const/16 v20, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
const/16 v21, 0x4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
const/16 v22, 0x0
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
move-object/from16 v17, v11
|
2020-09-08 08:16:32 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
move-object/from16 v19, v12
|
2020-09-09 19:21:20 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-direct/range {v17 .. v22}, Lcom/discord/restapi/RestAPIParams$UserGuildSettings$ChannelOverride;-><init>(Ljava/lang/Boolean;Lcom/discord/models/domain/ModelMuteConfig;Ljava/lang/Integer;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
invoke-direct {v10, v14, v15, v11}, Lcom/discord/restapi/RestAPIParams$UserGuildSettings;-><init>(JLcom/discord/restapi/RestAPIParams$UserGuildSettings$ChannelOverride;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:try_start_0
|
2020-09-16 21:45:36 +00:00
|
|
|
sget-object v12, Lcom/discord/utilities/rest/RestAPI;->Companion:Lcom/discord/utilities/rest/RestAPI$Companion;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v12}, Lcom/discord/utilities/rest/RestAPI$Companion;->getApi()Lcom/discord/utilities/rest/RestAPI;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
move-result-object v12
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v12, v7, v8, v10}, Lcom/discord/utilities/rest/RestAPI;->updateUserGuildSettings(JLcom/discord/restapi/RestAPIParams$UserGuildSettings;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
move-result-object v10
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
if-eqz v10, :cond_4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
new-instance v12, Ls0/m/b;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-direct {v12, v10}, Ls0/m/b;-><init>(Lrx/Observable;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v12}, Ls0/m/b;->a()Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
move-result-object v10
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
check-cast v10, Lcom/discord/models/domain/ModelNotificationSettings;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
sget-object v16, Lcom/discord/app/AppLog;->d:Lcom/discord/app/AppLog;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual/range {p0 .. p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
move-result-object v12
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v12}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
move-result-object v12
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-static {v12, v9}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
new-instance v13, Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-direct {v13}, Ljava/lang/StringBuilder;-><init>()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
const-string v11, "Muted: "
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v13, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v13, v7, v8}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
const/16 v11, 0x2d
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v13, v11}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v13, v14, v15}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v13, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v13, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v13}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
move-result-object v18
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
const/16 v19, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
const/16 v20, 0x4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
const/16 v21, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
move-object/from16 v17, v12
|
2020-09-08 08:16:32 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-static/range {v16 .. v21}, Lcom/discord/utilities/logging/Logger;->d$default(Lcom/discord/utilities/logging/Logger;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;ILjava/lang/Object;)V
|
|
|
|
|
|
|
|
sget-object v13, Lcom/discord/utilities/fcm/NotificationClient;->INSTANCE:Lcom/discord/utilities/fcm/NotificationClient;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/work/ListenableWorker;->getApplicationContext()Landroid/content/Context;
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
move-result-object v16
|
2020-05-17 12:40:10 +00:00
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
const/16 v17, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
const/16 v18, 0x4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
const/16 v19, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
move-wide v11, v14
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:try_start_1
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-static/range {v13 .. v19}, Lcom/discord/utilities/fcm/NotificationClient;->clear$default(Lcom/discord/utilities/fcm/NotificationClient;JLandroid/content/Context;ZILjava/lang/Object;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
sget-object v13, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v13}, Lcom/discord/stores/StoreStream$Companion;->getAnalytics()Lcom/discord/stores/StoreAnalytics;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
move-result-object v13
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
const-string v14, "notifSettings"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-static {v10, v14}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-static {v11, v12}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
move-result-object v14
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v13, v10, v14}, Lcom/discord/stores/StoreAnalytics;->onNotificationSettingsUpdated(Lcom/discord/models/domain/ModelNotificationSettings;Ljava/lang/Long;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-static {}, Landroidx/work/ListenableWorker$Result;->success()Landroidx/work/ListenableWorker$Result;
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
move-result-object v10
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-static {v10, v0}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:cond_4
|
2020-09-16 21:45:36 +00:00
|
|
|
move-wide v11, v14
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
const/4 v0, 0x0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
throw v0
|
2020-07-08 16:44:49 +00:00
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
|
2020-05-17 12:40:10 +00:00
|
|
|
:catchall_1
|
|
|
|
move-exception v0
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
move-wide v11, v14
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_0
|
2020-09-16 21:45:36 +00:00
|
|
|
sget-object v10, Lcom/discord/app/AppLog;->d:Lcom/discord/app/AppLog;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-static {v2, v9}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
new-instance v9, Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
const-string v13, "Mute failure: "
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v9, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v9, v7, v8}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
const/16 v7, 0x2d
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v9, v7}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v9, v11, v12}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v9, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v9, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v10, v2, v1, v0}, Lcom/discord/app/AppLog;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/work/ListenableWorker;->getRunAttemptCount()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, 0x3
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-ge v0, v1, :cond_5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-static {}, Landroidx/work/ListenableWorker$Result;->retry()Landroidx/work/ListenableWorker$Result;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-static {v0, v4}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
2020-05-17 12:40:10 +00:00
|
|
|
goto :goto_1
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:cond_5
|
2020-05-17 12:40:10 +00:00
|
|
|
invoke-static {}, Landroidx/work/ListenableWorker$Result;->failure()Landroidx/work/ListenableWorker$Result;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-static {v0, v3}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-09-09 19:21:20 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
:goto_1
|
|
|
|
move-object v10, v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_2
|
2020-09-16 21:45:36 +00:00
|
|
|
return-object v10
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:cond_6
|
2020-05-17 12:40:10 +00:00
|
|
|
:goto_3
|
2020-09-16 21:45:36 +00:00
|
|
|
move-object/from16 v5, p0
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-05-17 12:40:10 +00:00
|
|
|
invoke-static {}, Landroidx/work/ListenableWorker$Result;->failure()Landroidx/work/ListenableWorker$Result;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-static {v0, v3}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|