62 lines
2.8 KiB
Java
62 lines
2.8 KiB
Java
package com.discord.widgets.servers;
|
|
|
|
import android.content.Context;
|
|
import android.view.View;
|
|
import com.discord.i18n.RenderContext;
|
|
import com.discord.models.guild.Guild;
|
|
import com.discord.widgets.servers.premiumguild.WidgetPremiumGuildSubscription;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: WidgetServerSettingsOverview.kt */
|
|
public final class WidgetServerSettingsOverview$configureBannerSection$1 extends o implements Function1<RenderContext, Unit> {
|
|
public final /* synthetic */ Guild $guild;
|
|
|
|
/* compiled from: WidgetServerSettingsOverview.kt */
|
|
/* renamed from: com.discord.widgets.servers.WidgetServerSettingsOverview$configureBannerSection$1$1 reason: invalid class name */
|
|
public static final class AnonymousClass1 extends o implements Function1<View, Unit> {
|
|
public final /* synthetic */ WidgetServerSettingsOverview$configureBannerSection$1 this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public AnonymousClass1(WidgetServerSettingsOverview$configureBannerSection$1 widgetServerSettingsOverview$configureBannerSection$1) {
|
|
super(1);
|
|
this.this$0 = widgetServerSettingsOverview$configureBannerSection$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");
|
|
WidgetPremiumGuildSubscription.Companion companion = WidgetPremiumGuildSubscription.Companion;
|
|
Context context = view.getContext();
|
|
m.checkNotNullExpressionValue(context, "view.context");
|
|
companion.create(context, this.this$0.$guild.getId());
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public WidgetServerSettingsOverview$configureBannerSection$1(Guild guild) {
|
|
super(1);
|
|
this.$guild = guild;
|
|
}
|
|
|
|
/* 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("tierStatus", new AnonymousClass1(this));
|
|
}
|
|
}
|