2020-05-17 12:40:10 +00:00
|
|
|
.class public final Lcom/discord/widgets/settings/WidgetSettingsDeveloper$ExperimentViewHolder$bind$1;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "WidgetSettingsDeveloper.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Landroid/widget/AdapterView$OnItemSelectedListener;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
|
|
value = Lcom/discord/widgets/settings/WidgetSettingsDeveloper$ExperimentViewHolder;->bind(Ljava/util/Map$Entry;)V
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = null
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final synthetic $bucketSelection:I
|
|
|
|
|
|
|
|
.field public final synthetic $experiment:Lcom/discord/stores/StoreExperiments$Experiment;
|
|
|
|
|
|
|
|
.field public final synthetic $name:Ljava/lang/String;
|
|
|
|
|
|
|
|
.field public final synthetic this$0:Lcom/discord/widgets/settings/WidgetSettingsDeveloper$ExperimentViewHolder;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Lcom/discord/widgets/settings/WidgetSettingsDeveloper$ExperimentViewHolder;ILjava/lang/String;Lcom/discord/stores/StoreExperiments$Experiment;)V
|
|
|
|
.locals 0
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(I",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
"Lcom/discord/stores/StoreExperiments$Experiment;",
|
|
|
|
")V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$ExperimentViewHolder$bind$1;->this$0:Lcom/discord/widgets/settings/WidgetSettingsDeveloper$ExperimentViewHolder;
|
|
|
|
|
|
|
|
iput p2, p0, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$ExperimentViewHolder$bind$1;->$bucketSelection:I
|
|
|
|
|
|
|
|
iput-object p3, p0, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$ExperimentViewHolder$bind$1;->$name:Ljava/lang/String;
|
|
|
|
|
|
|
|
iput-object p4, p0, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$ExperimentViewHolder$bind$1;->$experiment:Lcom/discord/stores/StoreExperiments$Experiment;
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public onItemSelected(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Landroid/widget/AdapterView<",
|
|
|
|
"*>;",
|
|
|
|
"Landroid/view/View;",
|
|
|
|
"IJ)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget p1, p0, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$ExperimentViewHolder$bind$1;->$bucketSelection:I
|
|
|
|
|
|
|
|
if-ne p1, p3, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/16 p1, 0xa
|
|
|
|
|
|
|
|
const/4 p2, 0x2
|
|
|
|
|
|
|
|
const/4 p4, 0x0
|
|
|
|
|
|
|
|
if-ne p1, p3, :cond_2
|
|
|
|
|
|
|
|
sget-object p1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreStream$Companion;->getExperiments()Lcom/discord/stores/StoreExperiments;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iget-object p3, p0, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$ExperimentViewHolder$bind$1;->$name:Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-virtual {p1, p3, p4}, Lcom/discord/stores/StoreExperiments;->setExperimentOverride(Ljava/lang/String;Ljava/lang/Integer;)V
|
|
|
|
|
2020-07-31 02:11:25 +00:00
|
|
|
sget-object p1, Lcom/discord/app/AppLog;->d:Lcom/discord/app/AppLog;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const-string p3, "Experiment overrides cleared"
|
|
|
|
|
|
|
|
invoke-static {p1, p3, p4, p2, p4}, Lcom/discord/utilities/logging/Logger;->d$default(Lcom/discord/utilities/logging/Logger;Ljava/lang/String;Ljava/lang/Throwable;ILjava/lang/Object;)V
|
|
|
|
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$ExperimentViewHolder$bind$1;->this$0:Lcom/discord/widgets/settings/WidgetSettingsDeveloper$ExperimentViewHolder;
|
|
|
|
|
|
|
|
invoke-static {p1}, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$ExperimentViewHolder;->access$getSpinner$p(Lcom/discord/widgets/settings/WidgetSettingsDeveloper$ExperimentViewHolder;)Landroid/widget/Spinner;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
sget-object p2, Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->Companion:Lcom/discord/widgets/settings/WidgetSettingsDeveloper$Companion;
|
|
|
|
|
|
|
|
iget-object p3, p0, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$ExperimentViewHolder$bind$1;->$experiment:Lcom/discord/stores/StoreExperiments$Experiment;
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-virtual {p3}, Lcom/discord/stores/StoreExperiments$Experiment;->getRawExperiment()Lcom/discord/models/experiments/dto/UserExperimentDto;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p3
|
|
|
|
|
|
|
|
if-eqz p3, :cond_1
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-virtual {p3}, Lcom/discord/models/experiments/dto/UserExperimentDto;->getBucket()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result p3
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
2020-09-16 23:45:23 +00:00
|
|
|
const/4 p3, -0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-static {p2, p3}, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$Companion;->access$getBucketSelectionPosition(Lcom/discord/widgets/settings/WidgetSettingsDeveloper$Companion;I)I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Landroid/widget/Spinner;->setSelection(I)V
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
sget-object p1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreStream$Companion;->getExperiments()Lcom/discord/stores/StoreExperiments;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iget-object p5, p0, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$ExperimentViewHolder$bind$1;->$name:Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {p1, p5, v0}, Lcom/discord/stores/StoreExperiments;->setExperimentOverride(Ljava/lang/String;Ljava/lang/Integer;)V
|
|
|
|
|
2020-07-31 02:11:25 +00:00
|
|
|
sget-object p1, Lcom/discord/app/AppLog;->d:Lcom/discord/app/AppLog;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const-string p5, "Experiment overrides set to "
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-static {p5, p3}, Lf/e/b/a/a;->i(Ljava/lang/String;I)Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p3
|
|
|
|
|
|
|
|
invoke-static {p1, p3, p4, p2, p4}, Lcom/discord/utilities/logging/Logger;->d$default(Lcom/discord/utilities/logging/Logger;Ljava/lang/String;Ljava/lang/Throwable;ILjava/lang/Object;)V
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onNothingSelected(Landroid/widget/AdapterView;)V
|
|
|
|
.locals 0
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Landroid/widget/AdapterView<",
|
|
|
|
"*>;)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|