89 lines
3.9 KiB
Java
89 lines
3.9 KiB
Java
package com.discord.widgets.servers.premiumguild;
|
|
|
|
import android.content.Context;
|
|
import android.text.style.ForegroundColorSpan;
|
|
import android.text.style.StyleSpan;
|
|
import android.view.View;
|
|
import com.discord.i18n.Hook;
|
|
import com.discord.i18n.RenderContext;
|
|
import com.discord.utilities.color.ColorCompat;
|
|
import com.discord.widgets.settings.premium.WidgetSettingsPremium;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: WidgetPremiumGuildSubscription.kt */
|
|
public final class WidgetPremiumGuildSubscription$onViewBound$4 extends o implements Function1<RenderContext, Unit> {
|
|
public final /* synthetic */ WidgetPremiumGuildSubscription this$0;
|
|
|
|
/* compiled from: WidgetPremiumGuildSubscription.kt */
|
|
/* renamed from: com.discord.widgets.servers.premiumguild.WidgetPremiumGuildSubscription$onViewBound$4$1 reason: invalid class name */
|
|
public static final class AnonymousClass1 extends o implements Function1<View, Unit> {
|
|
public static final AnonymousClass1 INSTANCE = new AnonymousClass1();
|
|
|
|
public AnonymousClass1() {
|
|
super(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");
|
|
WidgetSettingsPremium.Companion companion = WidgetSettingsPremium.Companion;
|
|
Context context = view.getContext();
|
|
m.checkNotNullExpressionValue(context, "view.context");
|
|
WidgetSettingsPremium.Companion.launch$default(companion, context, null, null, 6, null);
|
|
}
|
|
}
|
|
|
|
/* compiled from: WidgetPremiumGuildSubscription.kt */
|
|
/* renamed from: com.discord.widgets.servers.premiumguild.WidgetPremiumGuildSubscription$onViewBound$4$2 reason: invalid class name */
|
|
public static final class AnonymousClass2 extends o implements Function1<Hook, Unit> {
|
|
public static final AnonymousClass2 INSTANCE = new AnonymousClass2();
|
|
|
|
public AnonymousClass2() {
|
|
super(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(Hook hook) {
|
|
invoke(hook);
|
|
return Unit.a;
|
|
}
|
|
|
|
public final void invoke(Hook hook) {
|
|
m.checkNotNullParameter(hook, "$receiver");
|
|
hook.a.add(new StyleSpan(1));
|
|
hook.a.add(new ForegroundColorSpan(-65536));
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public WidgetPremiumGuildSubscription$onViewBound$4(WidgetPremiumGuildSubscription widgetPremiumGuildSubscription) {
|
|
super(1);
|
|
this.this$0 = widgetPremiumGuildSubscription;
|
|
}
|
|
|
|
/* 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.d = Integer.valueOf(ColorCompat.getColor(this.this$0.requireContext(), 2131100249));
|
|
renderContext.b("onLearnMore", AnonymousClass1.INSTANCE);
|
|
renderContext.a("protipHook", AnonymousClass2.INSTANCE);
|
|
}
|
|
}
|