46 lines
2.4 KiB
Java
46 lines
2.4 KiB
Java
|
package com.discord.widgets.user.search;
|
||
|
|
||
|
import androidx.fragment.app.FragmentManager;
|
||
|
import com.discord.models.guild.Guild;
|
||
|
import com.discord.widgets.channels.list.WidgetChannelsListItemChannelActions;
|
||
|
import com.discord.widgets.guilds.profile.WidgetGuildProfileSheet;
|
||
|
import com.discord.widgets.user.search.WidgetGlobalSearchGuildsModel;
|
||
|
import d0.z.d.m;
|
||
|
import d0.z.d.o;
|
||
|
import kotlin.Unit;
|
||
|
import kotlin.jvm.functions.Function3;
|
||
|
/* compiled from: WidgetGlobalSearch.kt */
|
||
|
public final class WidgetGlobalSearch$configureUI$1 extends o implements Function3<Integer, Integer, WidgetGlobalSearchGuildsModel.Item, Unit> {
|
||
|
public final /* synthetic */ WidgetGlobalSearch this$0;
|
||
|
|
||
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||
|
public WidgetGlobalSearch$configureUI$1(WidgetGlobalSearch widgetGlobalSearch) {
|
||
|
super(3);
|
||
|
this.this$0 = widgetGlobalSearch;
|
||
|
}
|
||
|
|
||
|
/* 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, java.lang.Object, java.lang.Object] */
|
||
|
@Override // kotlin.jvm.functions.Function3
|
||
|
public /* bridge */ /* synthetic */ Unit invoke(Integer num, Integer num2, WidgetGlobalSearchGuildsModel.Item item) {
|
||
|
invoke(num.intValue(), num2.intValue(), item);
|
||
|
return Unit.a;
|
||
|
}
|
||
|
|
||
|
public final void invoke(int i, int i2, WidgetGlobalSearchGuildsModel.Item item) {
|
||
|
m.checkNotNullParameter(item, "data");
|
||
|
if (i == 2) {
|
||
|
WidgetChannelsListItemChannelActions.Companion companion = WidgetChannelsListItemChannelActions.Companion;
|
||
|
FragmentManager parentFragmentManager = this.this$0.getParentFragmentManager();
|
||
|
m.checkNotNullExpressionValue(parentFragmentManager, "parentFragmentManager");
|
||
|
companion.show(parentFragmentManager, item.getId());
|
||
|
} else if (i == 3) {
|
||
|
WidgetGuildProfileSheet.Companion companion2 = WidgetGuildProfileSheet.Companion;
|
||
|
FragmentManager parentFragmentManager2 = this.this$0.getParentFragmentManager();
|
||
|
m.checkNotNullExpressionValue(parentFragmentManager2, "parentFragmentManager");
|
||
|
Guild guild = item.getGuild();
|
||
|
WidgetGuildProfileSheet.Companion.show$default(companion2, parentFragmentManager2, false, guild != null ? guild.getId() : 0, 0, 8, null);
|
||
|
}
|
||
|
}
|
||
|
}
|