33 lines
1.4 KiB
Java
33 lines
1.4 KiB
Java
package com.discord.widgets.settings.account;
|
|
|
|
import android.content.Context;
|
|
import android.view.View;
|
|
import com.discord.models.experiments.domain.Experiment;
|
|
import com.discord.models.user.MeUser;
|
|
import com.discord.stores.StoreStream;
|
|
import com.discord.widgets.settings.account.WidgetSettingsAccountEmailEdit;
|
|
import d0.z.d.m;
|
|
/* compiled from: WidgetSettingsAccount.kt */
|
|
/* loaded from: classes2.dex */
|
|
public final class WidgetSettingsAccount$configureUI$4 implements View.OnClickListener {
|
|
public final /* synthetic */ MeUser $user;
|
|
|
|
public WidgetSettingsAccount$configureUI$4(MeUser meUser) {
|
|
this.$user = meUser;
|
|
}
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
boolean isVerified = this.$user.isVerified();
|
|
Experiment userExperiment = StoreStream.Companion.getExperiments().getUserExperiment("2022-01_email_change_confirmation", isVerified);
|
|
boolean z2 = true;
|
|
if (userExperiment == null || userExperiment.getBucket() != 1 || !isVerified) {
|
|
z2 = false;
|
|
}
|
|
WidgetSettingsAccountEmailEdit.Companion companion = WidgetSettingsAccountEmailEdit.Companion;
|
|
m.checkNotNullExpressionValue(view, "it");
|
|
Context context = view.getContext();
|
|
m.checkNotNullExpressionValue(context, "it.context");
|
|
companion.launch(context, z2);
|
|
}
|
|
}
|