forked from Juby210/discord-jadx
44 lines
2.0 KiB
Java
44 lines
2.0 KiB
Java
package com.discord.widgets.channels.list;
|
|
|
|
import androidx.fragment.app.FragmentManager;
|
|
import com.discord.models.guild.Guild;
|
|
import com.discord.widgets.guildscheduledevent.WidgetGuildScheduledEventListBottomSheet;
|
|
import com.discord.widgets.hubs.events.WidgetHubEventsPage;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: WidgetChannelsList.kt */
|
|
public final class WidgetChannelsList$onViewBound$8 extends o implements Function1<Guild, Unit> {
|
|
public final /* synthetic */ WidgetChannelsList this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public WidgetChannelsList$onViewBound$8(WidgetChannelsList widgetChannelsList) {
|
|
super(1);
|
|
this.this$0 = widgetChannelsList;
|
|
}
|
|
|
|
/* 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(Guild guild) {
|
|
invoke(guild);
|
|
return Unit.a;
|
|
}
|
|
|
|
public final void invoke(Guild guild) {
|
|
m.checkNotNullParameter(guild, "guild");
|
|
if (guild.isHub()) {
|
|
WidgetHubEventsPage.Companion companion = WidgetHubEventsPage.Companion;
|
|
FragmentManager parentFragmentManager = this.this$0.getParentFragmentManager();
|
|
m.checkNotNullExpressionValue(parentFragmentManager, "parentFragmentManager");
|
|
companion.show(parentFragmentManager, guild.getId());
|
|
return;
|
|
}
|
|
WidgetGuildScheduledEventListBottomSheet.Companion companion2 = WidgetGuildScheduledEventListBottomSheet.Companion;
|
|
FragmentManager parentFragmentManager2 = this.this$0.getParentFragmentManager();
|
|
m.checkNotNullExpressionValue(parentFragmentManager2, "parentFragmentManager");
|
|
WidgetGuildScheduledEventListBottomSheet.Companion.show$default(companion2, parentFragmentManager2, guild.getId(), null, 4, null);
|
|
}
|
|
}
|