51 lines
2.4 KiB
Java
51 lines
2.4 KiB
Java
package com.discord.widgets.hubs;
|
|
|
|
import android.view.LayoutInflater;
|
|
import android.view.ViewGroup;
|
|
import com.discord.databinding.DiscordHubAddServerListItemBinding;
|
|
import d0.z.d.k;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.functions.Function2;
|
|
/* compiled from: WidgetHubDomainSearch.kt */
|
|
/* loaded from: classes2.dex */
|
|
public final class WidgetHubDomainSearch$adapter$1 extends o implements Function2<LayoutInflater, ViewGroup, HubDomainViewHolder> {
|
|
public final /* synthetic */ WidgetHubDomainSearch this$0;
|
|
|
|
/* compiled from: WidgetHubDomainSearch.kt */
|
|
/* renamed from: com.discord.widgets.hubs.WidgetHubDomainSearch$adapter$1$1 reason: invalid class name */
|
|
/* loaded from: classes2.dex */
|
|
public static final /* synthetic */ class AnonymousClass1 extends k implements Function1<DomainGuildInfo, Unit> {
|
|
public AnonymousClass1(WidgetHubDomainSearch widgetHubDomainSearch) {
|
|
super(1, widgetHubDomainSearch, WidgetHubDomainSearch.class, "onServerClickListener", "onServerClickListener(Lcom/discord/widgets/hubs/DomainGuildInfo;)V", 0);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ Unit invoke(DomainGuildInfo domainGuildInfo) {
|
|
invoke2(domainGuildInfo);
|
|
return Unit.a;
|
|
}
|
|
|
|
/* renamed from: invoke reason: avoid collision after fix types in other method */
|
|
public final void invoke2(DomainGuildInfo domainGuildInfo) {
|
|
m.checkNotNullParameter(domainGuildInfo, "p1");
|
|
((WidgetHubDomainSearch) this.receiver).onServerClickListener(domainGuildInfo);
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public WidgetHubDomainSearch$adapter$1(WidgetHubDomainSearch widgetHubDomainSearch) {
|
|
super(2);
|
|
this.this$0 = widgetHubDomainSearch;
|
|
}
|
|
|
|
public final HubDomainViewHolder invoke(LayoutInflater layoutInflater, ViewGroup viewGroup) {
|
|
m.checkNotNullParameter(layoutInflater, "inflater");
|
|
m.checkNotNullParameter(viewGroup, "parent");
|
|
DiscordHubAddServerListItemBinding a = DiscordHubAddServerListItemBinding.a(layoutInflater, viewGroup, false);
|
|
m.checkNotNullExpressionValue(a, "DiscordHubAddServerListI…(inflater, parent, false)");
|
|
return new HubDomainViewHolder(a, new AnonymousClass1(this.this$0));
|
|
}
|
|
}
|