discord-jadx/app/src/main/java/com/discord/widgets/user/Badge$Companion$onBadgeClic...

44 lines
1.6 KiB
Java

package com.discord.widgets.user;
import android.content.Context;
import androidx.fragment.app.FragmentManager;
import c.a.a.e.a;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
/* compiled from: Badge.kt */
public final class Badge$Companion$onBadgeClick$1 extends o implements Function1<Badge, Unit> {
public final /* synthetic */ Context $context;
public final /* synthetic */ FragmentManager $fragmentManager;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public Badge$Companion$onBadgeClick$1(FragmentManager fragmentManager, Context context) {
super(1);
this.$fragmentManager = fragmentManager;
this.$context = context;
}
/* 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(Badge badge) {
invoke(badge);
return Unit.a;
}
public final void invoke(Badge badge) {
m.checkNotNullParameter(badge, "badge");
if (badge.getShowPremiumUpSell()) {
a.b.a(a.j, this.$fragmentManager, 5, this.$context.getString(2131892497), null, null, "Profile Modal", "Badge", badge.getObjectType(), false, false, 792);
return;
}
Context context = this.$context;
CharSequence tooltip = badge.getTooltip();
if (tooltip == null) {
tooltip = badge.getText();
}
c.a.d.o.h(context, tooltip, 0, null, 12);
}
}