67 lines
3.3 KiB
Java
67 lines
3.3 KiB
Java
|
package com.discord.widgets.servers;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.view.View;
|
||
|
import com.discord.i18n.RenderContext;
|
||
|
import com.discord.utilities.mg_recycler.DragAndDropAdapter;
|
||
|
import com.discord.widgets.servers.WidgetServerSettingsRolesListAdapter;
|
||
|
import com.discord.widgets.servers.settings.members.WidgetServerSettingsMembers;
|
||
|
import d0.z.d.m;
|
||
|
import d0.z.d.o;
|
||
|
import java.util.Objects;
|
||
|
import kotlin.Unit;
|
||
|
import kotlin.jvm.functions.Function1;
|
||
|
/* compiled from: WidgetServerSettingsRolesListAdapter.kt */
|
||
|
public final class WidgetServerSettingsRolesListAdapter$RoleListHelpItem$onConfigure$1 extends o implements Function1<RenderContext, Unit> {
|
||
|
public final /* synthetic */ DragAndDropAdapter.Payload $data;
|
||
|
|
||
|
/* compiled from: WidgetServerSettingsRolesListAdapter.kt */
|
||
|
/* renamed from: com.discord.widgets.servers.WidgetServerSettingsRolesListAdapter$RoleListHelpItem$onConfigure$1$1 reason: invalid class name */
|
||
|
public static final class AnonymousClass1 extends o implements Function1<View, Unit> {
|
||
|
public final /* synthetic */ WidgetServerSettingsRolesListAdapter$RoleListHelpItem$onConfigure$1 this$0;
|
||
|
|
||
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||
|
public AnonymousClass1(WidgetServerSettingsRolesListAdapter$RoleListHelpItem$onConfigure$1 widgetServerSettingsRolesListAdapter$RoleListHelpItem$onConfigure$1) {
|
||
|
super(1);
|
||
|
this.this$0 = widgetServerSettingsRolesListAdapter$RoleListHelpItem$onConfigure$1;
|
||
|
}
|
||
|
|
||
|
/* 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, "view");
|
||
|
WidgetServerSettingsMembers.Companion companion = WidgetServerSettingsMembers.Companion;
|
||
|
Context context = view.getContext();
|
||
|
m.checkNotNullExpressionValue(context, "view.context");
|
||
|
DragAndDropAdapter.Payload payload = this.this$0.$data;
|
||
|
Objects.requireNonNull(payload, "null cannot be cast to non-null type com.discord.widgets.servers.WidgetServerSettingsRolesListAdapter.HelpItem");
|
||
|
companion.create(context, ((WidgetServerSettingsRolesListAdapter.HelpItem) payload).getGuildId());
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||
|
public WidgetServerSettingsRolesListAdapter$RoleListHelpItem$onConfigure$1(DragAndDropAdapter.Payload payload) {
|
||
|
super(1);
|
||
|
this.$data = payload;
|
||
|
}
|
||
|
|
||
|
/* 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(RenderContext renderContext) {
|
||
|
invoke(renderContext);
|
||
|
return Unit.a;
|
||
|
}
|
||
|
|
||
|
public final void invoke(RenderContext renderContext) {
|
||
|
m.checkNotNullParameter(renderContext, "$receiver");
|
||
|
renderContext.b("onMembersClick", new AnonymousClass1(this));
|
||
|
}
|
||
|
}
|