discord-jadx/app/src/main/java/com/discord/utilities/integrations/SpotifyHelper$launchTrack$$...

28 lines
1.1 KiB
Java

package com.discord.utilities.integrations;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
/* compiled from: SpotifyHelper.kt */
public final class SpotifyHelper$launchTrack$$inlined$let$lambda$1 extends o implements Function0<Unit> {
public final /* synthetic */ Context $context$inlined;
public final /* synthetic */ String $it;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public SpotifyHelper$launchTrack$$inlined$let$lambda$1(String str, Context context) {
super(0);
this.$it = str;
this.$context$inlined = context;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo1invoke() {
String encode = Uri.encode(this.$it);
SpotifyHelper.access$launchSpotifyIntent(SpotifyHelper.INSTANCE, this.$context$inlined, new Intent("android.intent.action.VIEW", Uri.parse("spotify:track:" + encode + "?utm_source=discord&utm_medium=mobile")));
}
}