forked from Juby210/discord-jadx
48 lines
2.2 KiB
Java
48 lines
2.2 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$configureGuildHubActions$2 extends o implements Function1<View, Unit> {
|
|
public final /* synthetic */ long $guildId;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public WidgetGuildProfileSheet$configureGuildHubActions$2(long j) {
|
|
super(1);
|
|
this.$guildId = 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;
|
|
Context context = view.getContext();
|
|
m.checkNotNullExpressionValue(context, "it.context");
|
|
companion.launch(j, "Guild Bottom Sheet", context);
|
|
return;
|
|
}
|
|
WidgetEditUserOrGuildMemberProfile.Companion companion2 = WidgetEditUserOrGuildMemberProfile.Companion;
|
|
Context context2 = view.getContext();
|
|
m.checkNotNullExpressionValue(context2, "it.context");
|
|
WidgetEditUserOrGuildMemberProfile.Companion.launch$default(companion2, context2, null, Long.valueOf(this.$guildId), 2, null);
|
|
}
|
|
}
|