forked from Juby210/discord-jadx
51 lines
2.4 KiB
Java
51 lines
2.4 KiB
Java
package com.discord.widgets.guilds.profile;
|
|
|
|
import android.content.Context;
|
|
import android.view.View;
|
|
import com.discord.models.experiments.domain.Experiment;
|
|
import com.discord.stores.StoreStream;
|
|
import com.discord.widgets.guilds.profile.WidgetChangeGuildIdentity;
|
|
import com.discord.widgets.settings.profile.WidgetEditUserOrGuildMemberProfile;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: WidgetGuildProfileSheet.kt */
|
|
public final class WidgetGuildProfileSheet$configureGuildActions$$inlined$apply$lambda$4 extends o implements Function1<View, Unit> {
|
|
public final /* synthetic */ long $guildId$inlined;
|
|
public final /* synthetic */ WidgetGuildProfileSheet this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public WidgetGuildProfileSheet$configureGuildActions$$inlined$apply$lambda$4(WidgetGuildProfileSheet widgetGuildProfileSheet, long j) {
|
|
super(1);
|
|
this.this$0 = widgetGuildProfileSheet;
|
|
this.$guildId$inlined = j;
|
|
}
|
|
|
|
/* 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;
|
|
}
|
|
|
|
public final void invoke(View view) {
|
|
m.checkNotNullParameter(view, "it");
|
|
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);
|
|
}
|
|
}
|