2019-07-24 11:27:29 +00:00
|
|
|
.class public final Lcom/discord/widgets/settings/WidgetSettingsDeveloper;
|
|
|
|
.super Lcom/discord/app/AppFragment;
|
|
|
|
.source "WidgetSettingsDeveloper.kt"
|
|
|
|
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
2020-02-06 22:18:40 +00:00
|
|
|
Lcom/discord/widgets/settings/WidgetSettingsDeveloper$ExperimentViewHolder;,
|
2019-11-15 02:21:15 +00:00
|
|
|
Lcom/discord/widgets/settings/WidgetSettingsDeveloper$Companion;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
2020-02-06 22:18:40 +00:00
|
|
|
.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/Integer;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
.field public static final Companion:Lcom/discord/widgets/settings/WidgetSettingsDeveloper$Companion;
|
|
|
|
|
|
|
|
|
2020-01-28 00:59:01 +00:00
|
|
|
# instance fields
|
2020-02-06 22:18:40 +00:00
|
|
|
.field public final experimentsRv$delegate:Lkotlin/properties/ReadOnlyProperty;
|
2020-01-28 00:59:01 +00:00
|
|
|
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
# direct methods
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public static constructor <clinit>()V
|
2020-02-06 22:18:40 +00:00
|
|
|
.locals 5
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
new-instance v1, Lt/u/b/u;
|
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;
|
|
|
|
|
|
|
|
invoke-static {v2}, Lt/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lt/y/b;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "experimentsRv"
|
|
|
|
|
|
|
|
const-string v4, "getExperimentsRv()Landroidx/recyclerview/widget/RecyclerView;"
|
|
|
|
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lt/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
sget-object v2, Lt/u/b/w;->a:Lt/u/b/x;
|
|
|
|
|
|
|
|
invoke-virtual {v2, v1}, Lt/u/b/x;->property1(Lt/u/b/t;)Lt/y/d;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
|
|
|
sput-object v0, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
2019-11-15 02:21:15 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
new-instance v0, Lkotlin/ranges/IntRange;
|
|
|
|
|
|
|
|
const/16 v1, 0xa
|
|
|
|
|
|
|
|
invoke-direct {v0, v2, v1}, Lkotlin/ranges/IntRange;-><init>(II)V
|
|
|
|
|
|
|
|
invoke-static {v0}, Lt/q/l;->toList(Ljava/lang/Iterable;)Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
sput-object v0, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->BUCKET_LIST:Ljava/util/List;
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
.method public constructor <init>()V
|
2020-02-06 22:18:40 +00:00
|
|
|
.locals 1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/app/AppFragment;-><init>()V
|
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
const v0, 0x7f0a028d
|
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lu/a/a2/w;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->experimentsRv$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
.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
|
|
|
|
|
|
|
|
.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
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
.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-02-06 22:18:40 +00:00
|
|
|
.method private final setupExperimentSection()V
|
|
|
|
.locals 13
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
new-instance v0, Lcom/discord/utilities/views/SimpleRecyclerAdapter;
|
2020-01-28 00:59:01 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
sget-object v1, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$setupExperimentSection$experimentsAdapter$1;->INSTANCE:Lcom/discord/widgets/settings/WidgetSettingsDeveloper$setupExperimentSection$experimentsAdapter$1;
|
2020-01-28 00:59:01 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
const/4 v2, 0x0
|
2020-01-28 00:59:01 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
const/4 v3, 0x1
|
2020-01-28 00:59:01 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
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
|
2020-01-28 00:59:01 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->getExperimentsRv()Landroidx/recyclerview/widget/RecyclerView;
|
2020-01-28 00:59:01 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
move-result-object v1
|
2020-01-28 00:59:01 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
invoke-virtual {v1, v0}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V
|
2020-01-28 00:59:01 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
sget-object v1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
2020-01-28 00:59:01 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreStream$Companion;->getExperiments()Lcom/discord/stores/StoreExperiments;
|
2020-01-28 00:59:01 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
move-result-object v1
|
2020-01-28 00:59:01 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreExperiments;->getNameToExperimentMap$app_productionDiscordExternalRelease()Lrx/Observable;
|
2020-01-28 00:59:01 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
sget-object v3, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$setupExperimentSection$1;->INSTANCE:Lcom/discord/widgets/settings/WidgetSettingsDeveloper$setupExperimentSection$1;
|
2020-01-28 00:59:01 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
invoke-virtual {v1, v3}, Lrx/Observable;->f(Lb0/l/i;)Lrx/Observable;
|
2020-01-28 00:59:01 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
move-result-object v1
|
2020-01-28 00:59:01 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
const-string v3, "StoreStream\n .get\u2026e, _) -> name }\n }"
|
2020-01-28 00:59:01 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
invoke-static {v1, v3}, Lt/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-01-28 00:59:01 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
const/4 v3, 0x2
|
2020-01-28 00:59:01 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
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;
|
2020-01-28 00:59:01 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
move-result-object v4
|
2020-01-28 00:59:01 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
const-class v5, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;
|
2020-01-28 00:59:01 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
new-instance v10, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$setupExperimentSection$2;
|
2020-01-28 00:59:01 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
invoke-direct {v10, v0}, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$setupExperimentSection$2;-><init>(Lcom/discord/utilities/views/SimpleRecyclerAdapter;)V
|
2020-01-28 00:59:01 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
const/4 v6, 0x0
|
2020-01-28 00:59:01 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
const/4 v7, 0x0
|
2020-01-28 00:59:01 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
const/4 v8, 0x0
|
2020-01-28 00:59:01 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
const/4 v9, 0x0
|
2020-01-28 00:59:01 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
const/16 v11, 0x1e
|
2020-01-28 00:59:01 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
const/4 v12, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
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
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
return-void
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|
|
|
|
|
2020-01-28 00:59:01 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
# virtual methods
|
|
|
|
.method public getContentViewResId()I
|
|
|
|
.locals 1
|
2020-01-28 00:59:01 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
const v0, 0x7f0d021b
|
2020-01-28 00:59:01 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
return v0
|
2020-01-28 00:59:01 +00:00
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public onViewBound(Landroid/view/View;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 2
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v0, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz p1, :cond_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-super {p0, p1}, Lcom/discord/app/AppFragment;->onViewBound(Landroid/view/View;)V
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 p1, 0x1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x2
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-static {p0, p1, v0, v1, v0}, Lcom/discord/app/AppFragment;->setActionBarDisplayHomeAsUpEnabled$default(Lcom/discord/app/AppFragment;ZLjava/lang/Integer;ILjava/lang/Object;)Landroidx/appcompat/widget/Toolbar;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-12 20:59:48 +00:00
|
|
|
const p1, 0x7f120504
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/app/AppFragment;->setActionBarTitle(I)Lkotlin/Unit;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->setupExperimentSection()V
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
return-void
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "view"
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
throw v0
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|