37 lines
1.5 KiB
Java
37 lines
1.5 KiB
Java
|
package c.a.z;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import com.discord.models.domain.ModelInvite;
|
||
|
import com.discord.utilities.analytics.AnalyticsTracker;
|
||
|
import com.discord.views.OverlayMenuView;
|
||
|
import d0.z.d.m;
|
||
|
import d0.z.d.o;
|
||
|
import kotlin.Unit;
|
||
|
import kotlin.jvm.functions.Function1;
|
||
|
/* compiled from: OverlayMenuView.kt */
|
||
|
public final class s extends o implements Function1<ModelInvite, Unit> {
|
||
|
public final /* synthetic */ OverlayMenuView this$0;
|
||
|
|
||
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||
|
public s(OverlayMenuView overlayMenuView) {
|
||
|
super(1);
|
||
|
this.this$0 = overlayMenuView;
|
||
|
}
|
||
|
|
||
|
/* 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 Unit invoke(ModelInvite modelInvite) {
|
||
|
ModelInvite modelInvite2 = modelInvite;
|
||
|
m.checkNotNullParameter(modelInvite2, "invite");
|
||
|
AnalyticsTracker.inviteCopied(modelInvite2, "Mobile Voice Overlay");
|
||
|
Context context = this.this$0.getContext();
|
||
|
m.checkNotNullExpressionValue(context, "context");
|
||
|
String link = modelInvite2.toLink(this.this$0.getResources(), "https://discord.gg");
|
||
|
m.checkNotNullExpressionValue(link, "invite.toLink(resources, BuildConfig.HOST_INVITE)");
|
||
|
c.a.d.o.a(context, link, 2131890519);
|
||
|
this.this$0.getOnDismissRequested$app_productionBetaRelease().mo1invoke();
|
||
|
return Unit.a;
|
||
|
}
|
||
|
}
|