2020-05-17 12:40:10 +00:00
|
|
|
.class public final Lcom/discord/widgets/settings/WidgetSettingsDeveloper;
|
|
|
|
.super Lcom/discord/app/AppFragment;
|
|
|
|
.source "WidgetSettingsDeveloper.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lcom/discord/widgets/settings/WidgetSettingsDeveloper$NoticeViewHolder;,
|
|
|
|
Lcom/discord/widgets/settings/WidgetSettingsDeveloper$ExperimentViewHolder;,
|
|
|
|
Lcom/discord/widgets/settings/WidgetSettingsDeveloper$Companion;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
.field public static final BUCKET_LIST:Ljava/util/List;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
.field public static final CLEAR_BUCKET_OVERRIDE:I = 0xa
|
|
|
|
|
|
|
|
.field public static final Companion:Lcom/discord/widgets/settings/WidgetSettingsDeveloper$Companion;
|
|
|
|
|
|
|
|
.field public static final UNSET_BUCKET_OVERRIDE:I = 0x9
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2020-09-02 04:07:20 +00:00
|
|
|
.field public final crashDiscordJniBridge$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field public final crashDiscordNonfatal$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field public final crashKotlin$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-05-17 12:40:10 +00:00
|
|
|
.field public final experimentsRv$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field public final noticesRv$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public static constructor <clinit>()V
|
2020-09-16 23:45:23 +00:00
|
|
|
.locals 5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
const/4 v0, 0x5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-class v1, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v2, "experimentsRv"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v3, "getExperimentsRv()Landroidx/recyclerview/widget/RecyclerView;"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const/4 v4, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static {v1, v2, v3, v4}, Lf/e/b/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lc0/n/c/r;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v1
|
2020-09-08 08:16:32 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
aput-object v1, v0, v4
|
2020-09-08 08:16:32 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-class v1, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;
|
2020-09-08 08:16:32 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v2, "noticesRv"
|
2020-09-08 08:16:32 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v3, "getNoticesRv()Landroidx/recyclerview/widget/RecyclerView;"
|
2020-09-08 08:16:32 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static {v1, v2, v3, v4}, Lf/e/b/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lc0/n/c/r;
|
2020-09-08 08:16:32 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v1
|
2020-09-08 08:16:32 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const/4 v2, 0x1
|
2020-09-08 08:16:32 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
aput-object v1, v0, v2
|
2020-09-08 08:16:32 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-class v1, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;
|
2020-09-08 08:16:32 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v2, "crashKotlin"
|
2020-09-08 08:16:32 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v3, "getCrashKotlin()Landroid/view/View;"
|
2020-09-08 08:16:32 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static {v1, v2, v3, v4}, Lf/e/b/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lc0/n/c/r;
|
2020-09-08 08:16:32 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v1
|
2020-09-08 08:16:32 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const/4 v2, 0x2
|
2020-09-16 21:45:36 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
aput-object v1, v0, v2
|
2020-09-16 21:45:36 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-class v1, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;
|
2020-09-16 21:45:36 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v2, "crashDiscordJniBridge"
|
2020-09-16 21:45:36 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v3, "getCrashDiscordJniBridge()Landroid/view/View;"
|
2020-09-16 21:45:36 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static {v1, v2, v3, v4}, Lf/e/b/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lc0/n/c/r;
|
2020-09-16 21:45:36 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v1
|
2020-09-16 21:45:36 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const/4 v2, 0x3
|
2020-09-16 21:45:36 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
aput-object v1, v0, v2
|
2020-09-16 21:45:36 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-class v1, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;
|
2020-09-16 21:45:36 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v2, "crashDiscordNonfatal"
|
2020-09-16 21:45:36 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v3, "getCrashDiscordNonfatal()Landroid/view/View;"
|
2020-09-16 21:45:36 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static {v1, v2, v3, v4}, Lf/e/b/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lc0/n/c/r;
|
2020-09-16 21:45:36 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v1
|
2020-09-16 21:45:36 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const/4 v2, 0x4
|
2020-09-16 21:45:36 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
aput-object v1, v0, v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
sput-object v0, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$Companion;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
sput-object v0, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->Companion:Lcom/discord/widgets/settings/WidgetSettingsDeveloper$Companion;
|
|
|
|
|
|
|
|
new-instance v0, Lkotlin/ranges/IntRange;
|
|
|
|
|
|
|
|
const/16 v1, 0xa
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-direct {v0, v4, v1}, Lkotlin/ranges/IntRange;-><init>(II)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v2, Ljava/util/ArrayList;
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-static {v0, v1}, Lf/h/a/f/e/n/f;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
invoke-direct {v2, v3}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
|
|
|
|
move-object v3, v0
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
check-cast v3, Lc0/i/o;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-virtual {v3}, Lc0/i/o;->nextInt()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
const/16 v4, 0x9
|
|
|
|
|
|
|
|
if-eq v3, v4, :cond_1
|
|
|
|
|
|
|
|
if-eq v3, v1, :cond_0
|
|
|
|
|
|
|
|
invoke-static {v3}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string v3, "Reset"
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const-string v3, "Unset"
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
invoke-interface {v2, v3}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
sput-object v2, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->BUCKET_LIST:Ljava/util/List;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/app/AppFragment;-><init>()V
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
const v0, 0x7f0a0306
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static {p0, v0}, Lc0/j/a;->i(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->experimentsRv$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
const v0, 0x7f0a0307
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static {p0, v0}, Lc0/j/a;->i(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->noticesRv$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
const v0, 0x7f0a0305
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static {p0, v0}, Lc0/j/a;->i(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->crashKotlin$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
const v0, 0x7f0a0303
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static {p0, v0}, Lc0/j/a;->i(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->crashDiscordJniBridge$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
const v0, 0x7f0a0304
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static {p0, v0}, Lc0/j/a;->i(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->crashDiscordNonfatal$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-05-17 12:40:10 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$getBUCKET_LIST$cp()Ljava/util/List;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->BUCKET_LIST:Ljava/util/List;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
.method private final getCrashDiscordJniBridge()Landroid/view/View;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->crashDiscordJniBridge$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x3
|
|
|
|
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroid/view/View;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getCrashDiscordNonfatal()Landroid/view/View;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->crashDiscordNonfatal$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x4
|
|
|
|
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroid/view/View;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getCrashKotlin()Landroid/view/View;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->crashKotlin$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x2
|
|
|
|
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroid/view/View;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2020-05-17 12:40:10 +00:00
|
|
|
.method private final getExperimentsRv()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->experimentsRv$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getNoticesRv()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->noticesRv$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final launch(Landroid/content/Context;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->Companion:Lcom/discord/widgets/settings/WidgetSettingsDeveloper$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p0}, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$Companion;->launch(Landroid/content/Context;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
.method private final setupCrashes()V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->getCrashKotlin()Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$setupCrashes$1;->INSTANCE:Lcom/discord/widgets/settings/WidgetSettingsDeveloper$setupCrashes$1;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->getCrashDiscordNonfatal()Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$setupCrashes$2;
|
|
|
|
|
|
|
|
invoke-direct {v1, p0}, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$setupCrashes$2;-><init>(Lcom/discord/widgets/settings/WidgetSettingsDeveloper;)V
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->getCrashDiscordJniBridge()Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$setupCrashes$3;
|
|
|
|
|
|
|
|
invoke-direct {v1, p0}, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$setupCrashes$3;-><init>(Lcom/discord/widgets/settings/WidgetSettingsDeveloper;)V
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-05-17 12:40:10 +00:00
|
|
|
.method private final setupExperimentSection()V
|
|
|
|
.locals 13
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/utilities/views/SimpleRecyclerAdapter;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$setupExperimentSection$experimentsAdapter$1;->INSTANCE:Lcom/discord/widgets/settings/WidgetSettingsDeveloper$setupExperimentSection$experimentsAdapter$1;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
|
|
|
invoke-direct {v0, v2, v1, v3, v2}, Lcom/discord/utilities/views/SimpleRecyclerAdapter;-><init>(Ljava/util/List;Lkotlin/jvm/functions/Function2;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->getExperimentsRv()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1, v0}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreStream$Companion;->getExperiments()Lcom/discord/stores/StoreExperiments;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreExperiments;->getNameToExperimentMap$app_productionDiscordExternalRelease()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
sget-object v3, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$setupExperimentSection$1;->INSTANCE:Lcom/discord/widgets/settings/WidgetSettingsDeveloper$setupExperimentSection$1;
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-virtual {v1, v3}, Lrx/Observable;->E(Ll0/k/b;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const-string v3, "StoreStream\n .get\u2026e, _) -> name }\n }"
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static {v1, v3}, Lc0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 v3, 0x2
|
|
|
|
|
|
|
|
invoke-static {v1, p0, v2, v3, v2}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->ui$default(Lrx/Observable;Lcom/discord/app/AppComponent;Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;ILjava/lang/Object;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
const-class v5, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;
|
|
|
|
|
|
|
|
new-instance v10, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$setupExperimentSection$2;
|
|
|
|
|
|
|
|
invoke-direct {v10, v0}, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$setupExperimentSection$2;-><init>(Lcom/discord/utilities/views/SimpleRecyclerAdapter;)V
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
const/4 v9, 0x0
|
|
|
|
|
|
|
|
const/16 v11, 0x1e
|
|
|
|
|
|
|
|
const/4 v12, 0x0
|
|
|
|
|
|
|
|
invoke-static/range {v4 .. v12}, 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
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final setupNoticesSection()V
|
|
|
|
.locals 13
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/utilities/views/SimpleRecyclerAdapter;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$setupNoticesSection$noticesAdapter$1;->INSTANCE:Lcom/discord/widgets/settings/WidgetSettingsDeveloper$setupNoticesSection$noticesAdapter$1;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
|
|
|
invoke-direct {v0, v2, v1, v3, v2}, Lcom/discord/utilities/views/SimpleRecyclerAdapter;-><init>(Ljava/util/List;Lkotlin/jvm/functions/Function2;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->getNoticesRv()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1, v0}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V
|
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$setupNoticesSection$1;
|
|
|
|
|
|
|
|
invoke-direct {v1, p0}, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$setupNoticesSection$1;-><init>(Lcom/discord/widgets/settings/WidgetSettingsDeveloper;)V
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$setupNoticesSection$1;->invoke()Landroidx/recyclerview/widget/ItemTouchHelper;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->getNoticesRv()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-virtual {v1, v3}, Landroidx/recyclerview/widget/ItemTouchHelper;->attachToRecyclerView(Landroidx/recyclerview/widget/RecyclerView;)V
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreStream$Companion;->getNotices()Lcom/discord/stores/StoreNotices;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreNotices;->observeNoticesSeen()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
sget-object v3, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$setupNoticesSection$2;->INSTANCE:Lcom/discord/widgets/settings/WidgetSettingsDeveloper$setupNoticesSection$2;
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-virtual {v1, v3}, Lrx/Observable;->E(Ll0/k/b;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const-string v3, "StoreStream\n .get\u2026 .toList()\n }"
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static {v1, v3}, Lc0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-static {v1}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const/4 v3, 0x2
|
|
|
|
|
|
|
|
invoke-static {v1, p0, v2, v3, v2}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->ui$default(Lrx/Observable;Lcom/discord/app/AppComponent;Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;ILjava/lang/Object;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
const-class v5, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;
|
|
|
|
|
|
|
|
new-instance v10, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$setupNoticesSection$3;
|
|
|
|
|
|
|
|
invoke-direct {v10, v0}, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$setupNoticesSection$3;-><init>(Lcom/discord/utilities/views/SimpleRecyclerAdapter;)V
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
const/4 v9, 0x0
|
|
|
|
|
|
|
|
const/16 v11, 0x1e
|
|
|
|
|
|
|
|
const/4 v12, 0x0
|
|
|
|
|
|
|
|
invoke-static/range {v4 .. v12}, 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
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public getContentViewResId()I
|
|
|
|
.locals 1
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
const v0, 0x7f0d0282
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onViewBound(Landroid/view/View;)V
|
2020-09-16 23:45:23 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const-string v0, "view"
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-super {p0, p1}, Lcom/discord/app/AppFragment;->onViewBound(Landroid/view/View;)V
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
const/4 p1, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/app/AppFragment;->setActionBarDisplayHomeAsUpEnabled(Z)Landroidx/appcompat/widget/Toolbar;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
const p1, 0x7f1205aa
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/app/AppFragment;->setActionBarTitle(I)Lkotlin/Unit;
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->setupCrashes()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
return-void
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onViewBoundOrOnResume()V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-super {p0}, Lcom/discord/app/AppFragment;->onViewBoundOrOnResume()V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->setupExperimentSection()V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->setupNoticesSection()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|