2021-08-03 07:33:18 +00:00
|
|
|
package com.discord.widgets.guilds.profile;
|
|
|
|
|
2021-09-24 06:27:57 +00:00
|
|
|
import android.content.Context;
|
|
|
|
import android.view.View;
|
2021-11-02 06:38:17 +00:00
|
|
|
import com.discord.models.experiments.domain.Experiment;
|
|
|
|
import com.discord.stores.StoreStream;
|
2021-09-24 06:27:57 +00:00
|
|
|
import com.discord.widgets.guilds.profile.WidgetChangeGuildIdentity;
|
2021-11-02 06:38:17 +00:00
|
|
|
import com.discord.widgets.settings.profile.WidgetEditUserOrGuildMemberProfile;
|
|
|
|
import d0.z.d.m;
|
|
|
|
import d0.z.d.o;
|
2021-09-24 06:27:57 +00:00
|
|
|
import kotlin.Unit;
|
|
|
|
import kotlin.jvm.functions.Function1;
|
2021-08-03 07:33:18 +00:00
|
|
|
/* compiled from: WidgetGuildProfileSheet.kt */
|
2021-09-24 06:27:57 +00:00
|
|
|
public final class WidgetGuildProfileSheet$configureGuildActions$$inlined$apply$lambda$4 extends o implements Function1<View, Unit> {
|
2021-08-03 07:33:18 +00:00
|
|
|
public final /* synthetic */ long $guildId$inlined;
|
|
|
|
public final /* synthetic */ WidgetGuildProfileSheet this$0;
|
|
|
|
|
2021-09-24 06:27:57 +00:00
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
2021-10-20 06:51:20 +00:00
|
|
|
public WidgetGuildProfileSheet$configureGuildActions$$inlined$apply$lambda$4(WidgetGuildProfileSheet widgetGuildProfileSheet, long j) {
|
2021-09-24 06:27:57 +00:00
|
|
|
super(1);
|
2021-08-03 07:33:18 +00:00
|
|
|
this.this$0 = widgetGuildProfileSheet;
|
|
|
|
this.$guildId$inlined = j;
|
2021-09-24 06:27:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Return type fixed from 'java.lang.Object' to match base method */
|
|
|
|
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
|
|
public /* bridge */ /* synthetic */ Unit invoke(View view) {
|
|
|
|
invoke(view);
|
|
|
|
return Unit.a;
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
|
2021-09-24 06:27:57 +00:00
|
|
|
public final void invoke(View view) {
|
|
|
|
m.checkNotNullParameter(view, "it");
|
2021-11-02 06:38:17 +00:00
|
|
|
Experiment userExperiment = StoreStream.Companion.getExperiments().getUserExperiment("2021-10_premium_guild_member_profiles", true);
|
|
|
|
if (userExperiment == null || userExperiment.getBucket() != 1) {
|
|
|
|
WidgetChangeGuildIdentity.Companion companion = WidgetChangeGuildIdentity.Companion;
|
|
|
|
long j = this.$guildId$inlined;
|
|
|
|
Context context = view.getContext();
|
|
|
|
m.checkNotNullExpressionValue(context, "it.context");
|
|
|
|
companion.launch(j, "Guild Bottom Sheet", context);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
WidgetEditUserOrGuildMemberProfile.Companion companion2 = WidgetEditUserOrGuildMemberProfile.Companion;
|
|
|
|
Long valueOf = Long.valueOf(this.$guildId$inlined);
|
|
|
|
Context context2 = view.getContext();
|
|
|
|
m.checkNotNullExpressionValue(context2, "it.context");
|
|
|
|
WidgetEditUserOrGuildMemberProfile.Companion.launch$default(companion2, context2, null, valueOf, 2, null);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|