2020-05-17 12:40:10 +00:00
|
|
|
.class public final Lcom/discord/stores/StoreChangeLog;
|
|
|
|
.super Lcom/discord/stores/Store;
|
|
|
|
.source "StoreChangeLog.kt"
|
|
|
|
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lcom/discord/stores/StoreChangeLog$StorePayload;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
2020-05-17 12:40:10 +00:00
|
|
|
# instance fields
|
|
|
|
.field public app:Landroid/app/Application;
|
|
|
|
|
|
|
|
.field public final clock:Lcom/discord/utilities/time/Clock;
|
|
|
|
|
|
|
|
.field public final notices:Lcom/discord/stores/StoreNotices;
|
|
|
|
|
|
|
|
.field public final users:Lcom/discord/stores/StoreUser;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Lcom/discord/utilities/time/Clock;Lcom/discord/stores/StoreNotices;Lcom/discord/stores/StoreUser;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/stores/Store;-><init>()V
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/stores/StoreChangeLog;->clock:Lcom/discord/utilities/time/Clock;
|
|
|
|
|
|
|
|
iput-object p2, p0, Lcom/discord/stores/StoreChangeLog;->notices:Lcom/discord/stores/StoreNotices;
|
|
|
|
|
|
|
|
iput-object p3, p0, Lcom/discord/stores/StoreChangeLog;->users:Lcom/discord/stores/StoreUser;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "users"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const-string p1, "notices"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const-string p1, "clock"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public static final synthetic access$createChangeLogNotice(Lcom/discord/stores/StoreChangeLog;Lcom/discord/stores/StoreExperiments$Experiment;)Lcom/discord/stores/StoreNotices$Notice;
|
2020-05-17 12:40:10 +00:00
|
|
|
.locals 0
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {p0, p1}, Lcom/discord/stores/StoreChangeLog;->createChangeLogNotice(Lcom/discord/stores/StoreExperiments$Experiment;)Lcom/discord/stores/StoreNotices$Notice;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$getNotices$p(Lcom/discord/stores/StoreChangeLog;)Lcom/discord/stores/StoreNotices;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iget-object p0, p0, Lcom/discord/stores/StoreChangeLog;->notices:Lcom/discord/stores/StoreNotices;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public static final synthetic access$shouldShowChangelog(Lcom/discord/stores/StoreChangeLog;Landroid/content/Context;JLjava/lang/String;Lcom/discord/stores/StoreExperiments$Experiment;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
.locals 0
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct/range {p0 .. p5}, Lcom/discord/stores/StoreChangeLog;->shouldShowChangelog(Landroid/content/Context;JLjava/lang/String;Lcom/discord/stores/StoreExperiments$Experiment;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
return p0
|
|
|
|
.end method
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.method private final createChangeLogNotice(Lcom/discord/stores/StoreExperiments$Experiment;)Lcom/discord/stores/StoreNotices$Notice;
|
|
|
|
.locals 18
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v16, Lcom/discord/stores/StoreNotices$Notice;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
new-instance v13, Lcom/discord/stores/StoreChangeLog$createChangeLogNotice$1;
|
|
|
|
|
|
|
|
move-object/from16 v15, p0
|
|
|
|
|
|
|
|
move-object/from16 v0, p1
|
|
|
|
|
|
|
|
invoke-direct {v13, v15, v0}, Lcom/discord/stores/StoreChangeLog$createChangeLogNotice$1;-><init>(Lcom/discord/stores/StoreChangeLog;Lcom/discord/stores/StoreExperiments$Experiment;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const-string v1, "CHANGE_LOG"
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
const-wide/16 v3, 0x539
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v6, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
const-wide/16 v9, 0x0
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const-wide/32 v11, 0x240c8400
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/16 v14, 0xe2
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/16 v17, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-object/from16 v0, v16
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object/from16 v15, v17
|
|
|
|
|
2020-05-17 12:40:10 +00:00
|
|
|
invoke-direct/range {v0 .. v15}, Lcom/discord/stores/StoreNotices$Notice;-><init>(Ljava/lang/String;Lcom/discord/utilities/time/Clock;JIZZLjava/util/List;JJLkotlin/jvm/functions/Function1;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
return-object v16
|
|
|
|
.end method
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.method private final getChangelogExperimentString(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const-string v2, "string"
|
|
|
|
|
|
|
|
invoke-virtual {v0, p2, v2, v1}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
if-lez p2, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p3
|
|
|
|
|
|
|
|
const-string p1, "context.getString(id)"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p3, p1}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-object p3
|
|
|
|
.end method
|
|
|
|
|
2020-05-17 12:40:10 +00:00
|
|
|
.method private final getLastSeenChangeLogVersion()Ljava/lang/String;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/stores/Store;->getPrefs()Landroid/content/SharedPreferences;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "CACHE_KEY_VIEWED_CHANGE_LOG_VERSION"
|
|
|
|
|
|
|
|
const-string v2, ""
|
|
|
|
|
|
|
|
invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final isTooYoung(J)Z
|
|
|
|
.locals 5
|
|
|
|
|
|
|
|
const/16 v0, 0x16
|
|
|
|
|
|
|
|
ushr-long/2addr p1, v0
|
|
|
|
|
|
|
|
const-wide v0, 0x14aa2cab000L
|
|
|
|
|
|
|
|
add-long/2addr p1, v0
|
|
|
|
|
|
|
|
const-wide/32 v0, 0x19bfcc00
|
|
|
|
|
|
|
|
add-long/2addr p1, v0
|
|
|
|
|
|
|
|
iget-object v2, p0, Lcom/discord/stores/StoreChangeLog;->notices:Lcom/discord/stores/StoreNotices;
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lcom/discord/stores/StoreNotices;->getFirstUseTimestamp()J
|
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
add-long/2addr v2, v0
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreChangeLog;->clock:Lcom/discord/utilities/time/Clock;
|
|
|
|
|
|
|
|
invoke-interface {v0}, Lcom/discord/utilities/time/Clock;->currentTimeMillis()J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
cmp-long v4, v0, p1
|
|
|
|
|
|
|
|
if-ltz v4, :cond_1
|
|
|
|
|
|
|
|
cmp-long p1, v0, v2
|
|
|
|
|
|
|
|
if-gez p1, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public static synthetic openChangeLog$default(Lcom/discord/stores/StoreChangeLog;Landroid/content/Context;Lcom/discord/stores/StoreExperiments$Experiment;ZILjava/lang/Object;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
and-int/lit8 p4, p4, 0x4
|
|
|
|
|
|
|
|
if-eqz p4, :cond_0
|
|
|
|
|
|
|
|
const/4 p3, 0x0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual {p0, p1, p2, p3}, Lcom/discord/stores/StoreChangeLog;->openChangeLog(Landroid/content/Context;Lcom/discord/stores/StoreExperiments$Experiment;Z)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-05-17 12:40:10 +00:00
|
|
|
.method private final setLastSeenChangeLogVersion(Ljava/lang/String;)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/stores/Store;->getPrefs()Landroid/content/SharedPreferences;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/stores/StoreChangeLog$lastSeenChangeLogVersion$1;
|
|
|
|
|
|
|
|
invoke-direct {v1, p1}, Lcom/discord/stores/StoreChangeLog$lastSeenChangeLogVersion$1;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Lcom/discord/utilities/cache/SharedPreferenceExtensionsKt;->edit(Landroid/content/SharedPreferences;Lkotlin/jvm/functions/Function1;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.method private final shouldShowChangelog(Landroid/content/Context;JLjava/lang/String;Lcom/discord/stores/StoreExperiments$Experiment;)Z
|
|
|
|
.locals 6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {p5}, Lcom/discord/stores/StoreExperiments$Experiment;->getBucket()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result p5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v0, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v1, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-ne p5, v1, :cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 p5, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p5, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz p5, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {p1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const-string v4, "change_log_md_experiment_body"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const-string v5, "string"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v2, v4, v5, v3}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
goto :goto_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:cond_1
|
2020-08-10 21:02:22 +00:00
|
|
|
const v2, 0x7f1203da
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:goto_1
|
2020-07-25 00:57:58 +00:00
|
|
|
const-string v3, "en"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p1, v2, v3}, Lcom/discord/utilities/string/StringUtilsKt;->getStringByLocale(Landroid/content/Context;ILjava/lang/String;)Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
move-result-object v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p1, v2, p4}, Lcom/discord/utilities/string/StringUtilsKt;->getStringByLocale(Landroid/content/Context;ILjava/lang/String;)Ljava/lang/String;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p4, v3}, Lj0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result p4
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
xor-int/2addr p4, v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz p4, :cond_2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v4, v2}, Lj0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result p4
|
|
|
|
|
|
|
|
if-eqz p4, :cond_2
|
|
|
|
|
|
|
|
return v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_2
|
2020-07-08 16:44:49 +00:00
|
|
|
const-string p4, "context.getString(R.string.change_log_md_date)"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-10 21:02:22 +00:00
|
|
|
const v2, 0x7f1203db
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz p5, :cond_3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {p1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p5, p4}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
const-string p4, "change_log_md_experiment_date"
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p4, p5}, Lcom/discord/stores/StoreChangeLog;->getChangelogExperimentString(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_3
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {p1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p1, p4}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
:goto_2
|
|
|
|
invoke-direct {p0}, Lcom/discord/stores/StoreChangeLog;->getLastSeenChangeLogVersion()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p4
|
|
|
|
|
|
|
|
if-eqz p4, :cond_5
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p4}, Lj0/t/k;->isBlank(Ljava/lang/CharSequence;)Z
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result p4
|
|
|
|
|
|
|
|
if-eqz p4, :cond_4
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
const/4 p4, 0x0
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
:goto_3
|
|
|
|
const/4 p4, 0x1
|
|
|
|
|
|
|
|
:goto_4
|
|
|
|
if-nez p4, :cond_7
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {p0, p2, p3}, Lcom/discord/stores/StoreChangeLog;->isTooYoung(J)Z
|
|
|
|
|
|
|
|
move-result p2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz p2, :cond_6
|
|
|
|
|
|
|
|
goto :goto_5
|
|
|
|
|
|
|
|
:cond_6
|
2020-05-17 12:40:10 +00:00
|
|
|
invoke-direct {p0}, Lcom/discord/stores/StoreChangeLog;->getLastSeenChangeLogVersion()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p1, p2}, Lj0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
xor-int/2addr p1, v1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:cond_7
|
|
|
|
:goto_5
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/stores/StoreChangeLog;->markSeen(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
return v0
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final getApp()Landroid/app/Application;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreChangeLog;->app:Landroid/app/Application;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string v0, "app"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v0}, Lj0/n/c/h;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final handleConnectionOpen(Lcom/discord/models/domain/ModelPayload;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
.locals 12
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelPayload;->getUserSettings()Lcom/discord/models/domain/ModelUserSettings;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const-string v1, "payload.userSettings"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p1, v1}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelUserSettings;->getLocale()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object v1, p0, Lcom/discord/stores/StoreChangeLog;->users:Lcom/discord/stores/StoreUser;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreUser;->observeMeId()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-static {v1}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationBuffered(Lrx/Observable;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lrx/Observable;->q()Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
sget-object v2, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lcom/discord/stores/StoreStream$Companion;->getExperiments()Lcom/discord/stores/StoreExperiments;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const/4 v3, 0x2
|
|
|
|
|
|
|
|
const-string v4, "2020-06_android_changelog_special"
|
|
|
|
|
|
|
|
invoke-static {v2, v4, v0, v3, v0}, Lcom/discord/stores/StoreExperiments;->getExperiment$default(Lcom/discord/stores/StoreExperiments;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
sget-object v2, Lcom/discord/stores/StoreChangeLog$handleConnectionOpen$1;->INSTANCE:Lcom/discord/stores/StoreChangeLog$handleConnectionOpen$1;
|
|
|
|
|
2020-08-04 06:02:43 +00:00
|
|
|
invoke-virtual {v0, v2}, Lrx/Observable;->w(Lr0/k/b;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v2, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-04 06:02:43 +00:00
|
|
|
invoke-virtual {v0, v2}, Lrx/Observable;->V(I)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
sget-object v2, Lcom/discord/stores/StoreChangeLog$handleConnectionOpen$2;->INSTANCE:Lcom/discord/stores/StoreChangeLog$handleConnectionOpen$2;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {v1, v0, v2}, Lrx/Observable;->j(Lrx/Observable;Lrx/Observable;Lrx/functions/Func2;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
const-string v0, "Observable.combineLatest\u2026iment = experiment)\n }"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v3, v0}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const-class v4, Lcom/discord/stores/StoreChangeLog;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
new-instance v9, Lcom/discord/stores/StoreChangeLog$handleConnectionOpen$3;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {v9, p0, p1}, Lcom/discord/stores/StoreChangeLog$handleConnectionOpen$3;-><init>(Lcom/discord/stores/StoreChangeLog;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/16 v10, 0x1e
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v11, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static/range {v3 .. v11}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->appSubscribe$default(Lrx/Observable;Ljava/lang/Class;Landroid/content/Context;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "payload"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
throw v0
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final init(Landroid/app/Application;)V
|
|
|
|
.locals 0
|
|
|
|
.annotation runtime Lcom/discord/stores/StoreThread;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/stores/Store;->init(Landroid/content/Context;)V
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/stores/StoreChangeLog;->app:Landroid/app/Application;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "app"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public final markSeen(Ljava/lang/String;)V
|
|
|
|
.locals 6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {p0, p1}, Lcom/discord/stores/StoreChangeLog;->setLastSeenChangeLogVersion(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreChangeLog;->notices:Lcom/discord/stores/StoreNotices;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const-wide/16 v2, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v4, 0x2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v5, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const-string v1, "CHANGE_LOG"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static/range {v0 .. v5}, Lcom/discord/stores/StoreNotices;->markSeen$default(Lcom/discord/stores/StoreNotices;Ljava/lang/String;JILjava/lang/Object;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
return-void
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:cond_0
|
|
|
|
const-string p1, "currentVersion"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 p1, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
throw p1
|
|
|
|
.end method
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public final openChangeLog(Landroid/content/Context;Lcom/discord/stores/StoreExperiments$Experiment;Z)V
|
|
|
|
.locals 13
|
|
|
|
|
|
|
|
move-object v0, p0
|
|
|
|
|
|
|
|
move-object v2, p1
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
if-eqz v2, :cond_6
|
|
|
|
|
|
|
|
if-eqz p2, :cond_5
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Lcom/discord/stores/StoreExperiments$Experiment;->getBucket()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
const/4 v3, 0x2
|
|
|
|
|
|
|
|
const-string v4, "context.getString(R.string.change_log_md_body)"
|
|
|
|
|
2020-08-10 21:02:22 +00:00
|
|
|
const v5, 0x7f1203da
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
const-string v6, "context.getString(R.string.change_log_md_video)"
|
|
|
|
|
2020-08-10 21:02:22 +00:00
|
|
|
const v7, 0x7f1203de
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
const-string v8, "context.getString(R.string.change_log_md_revision)"
|
|
|
|
|
2020-08-10 21:02:22 +00:00
|
|
|
const v9, 0x7f1203dd
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
const-string v10, "context.getString(R.string.change_log_md_date)"
|
|
|
|
|
2020-08-10 21:02:22 +00:00
|
|
|
const v11, 0x7f1203db
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
const/4 v12, 0x1
|
|
|
|
|
|
|
|
if-eq v1, v12, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Lcom/discord/stores/StoreExperiments$Experiment;->getBucket()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-ne v1, v3, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_0
|
2020-07-08 16:44:49 +00:00
|
|
|
sget-object v1, Lcom/discord/widgets/settings/WidgetChangeLog;->Companion:Lcom/discord/widgets/settings/WidgetChangeLog$Companion;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {p1, v11}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v3, v10}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v9}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v9
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v9, v8}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v7}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v7, v6}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v5}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v6, v4}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-object v2, p1
|
|
|
|
|
|
|
|
move-object v4, v9
|
|
|
|
|
|
|
|
move-object v5, v7
|
|
|
|
|
|
|
|
invoke-virtual/range {v1 .. v6}, Lcom/discord/widgets/settings/WidgetChangeLog$Companion;->launch(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
goto/16 :goto_3
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
|
|
|
invoke-virtual {p1, v11}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v1, v10}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
const-string v10, "change_log_md_experiment_date"
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, v10, v1}, Lcom/discord/stores/StoreChangeLog;->getChangelogExperimentString(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v10
|
|
|
|
|
|
|
|
invoke-virtual {p1, v9}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v1, v8}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
const-string v8, "change_log_md_revision"
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, v8, v1}, Lcom/discord/stores/StoreChangeLog;->getChangelogExperimentString(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v8
|
|
|
|
|
|
|
|
invoke-virtual {p1, v7}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v1, v6}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
const-string v6, "change_log_md_experiment_video"
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, v6, v1}, Lcom/discord/stores/StoreChangeLog;->getChangelogExperimentString(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
invoke-virtual {p1, v5}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v1, v4}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
const-string v4, "change_log_md_experiment_body"
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, v4, v1}, Lcom/discord/stores/StoreChangeLog;->getChangelogExperimentString(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
const v1, 0x7f120279
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const-string v4, "context.getString(R.string.back)"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v1, v4}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
const-string v4, "change_log_md_experiment_template"
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, v4, v1}, Lcom/discord/stores/StoreChangeLog;->getChangelogExperimentString(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
if-eqz p3, :cond_2
|
|
|
|
|
|
|
|
sget-object v4, Lcom/discord/widgets/settings/WidgetChangeLogSpecial$Companion$ExitStyle;->BACK:Lcom/discord/widgets/settings/WidgetChangeLogSpecial$Companion$ExitStyle;
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
sget-object v4, Lcom/discord/widgets/settings/WidgetChangeLogSpecial$Companion$ExitStyle;->CLOSE:Lcom/discord/widgets/settings/WidgetChangeLogSpecial$Companion$ExitStyle;
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
move-object v9, v4
|
|
|
|
|
|
|
|
const-string v4, "special"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v1, v4}, Lj0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/WidgetChangeLogSpecial;->Companion:Lcom/discord/widgets/settings/WidgetChangeLogSpecial$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Lcom/discord/stores/StoreExperiments$Experiment;->getBucket()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
if-ne v4, v3, :cond_3
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
const/4 v12, 0x0
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
move-object v2, p1
|
|
|
|
|
|
|
|
move-object v3, v10
|
|
|
|
|
|
|
|
move-object v4, v8
|
|
|
|
|
|
|
|
move-object v5, v6
|
|
|
|
|
|
|
|
move-object v6, v7
|
|
|
|
|
|
|
|
move-object v7, v9
|
|
|
|
|
|
|
|
move v8, v12
|
|
|
|
|
|
|
|
invoke-virtual/range {v1 .. v8}, Lcom/discord/widgets/settings/WidgetChangeLogSpecial$Companion;->launch(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/discord/widgets/settings/WidgetChangeLogSpecial$Companion$ExitStyle;Z)V
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/WidgetChangeLog;->Companion:Lcom/discord/widgets/settings/WidgetChangeLog$Companion;
|
|
|
|
|
|
|
|
move-object v2, p1
|
|
|
|
|
|
|
|
move-object v3, v10
|
|
|
|
|
|
|
|
move-object v4, v8
|
|
|
|
|
|
|
|
move-object v5, v6
|
|
|
|
|
|
|
|
move-object v6, v7
|
|
|
|
|
|
|
|
invoke-virtual/range {v1 .. v6}, Lcom/discord/widgets/settings/WidgetChangeLog$Companion;->launch(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
const-string v2, "changelogExperiment"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v2}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
throw v1
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
const-string v2, "context"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v2}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
throw v1
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final setApp(Landroid/app/Application;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/stores/StoreChangeLog;->app:Landroid/app/Application;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "<set-?>"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|