2020-08-26 17:47:03 +00:00
|
|
|
.class public final Lcom/discord/utilities/integrations/SpotifyHelper$launchAlbum$1$1;
|
2020-09-09 19:21:20 +00:00
|
|
|
.super Lk0/n/c/j;
|
2020-05-17 12:40:10 +00:00
|
|
|
.source "SpotifyHelper.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
2020-08-26 17:47:03 +00:00
|
|
|
value = Lcom/discord/utilities/integrations/SpotifyHelper$launchAlbum$1;->invoke()V
|
2020-05-17 12:40:10 +00:00
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = null
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2020-09-09 19:21:20 +00:00
|
|
|
"Lk0/n/c/j;",
|
2020-05-17 12:40:10 +00:00
|
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
|
|
"Lcom/discord/models/domain/ModelActivityMetaData;",
|
|
|
|
"Lkotlin/Unit;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2020-08-26 17:47:03 +00:00
|
|
|
.field public final synthetic this$0:Lcom/discord/utilities/integrations/SpotifyHelper$launchAlbum$1;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-08-26 17:47:03 +00:00
|
|
|
.method public constructor <init>(Lcom/discord/utilities/integrations/SpotifyHelper$launchAlbum$1;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
.locals 0
|
|
|
|
|
2020-08-26 17:47:03 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/utilities/integrations/SpotifyHelper$launchAlbum$1$1;->this$0:Lcom/discord/utilities/integrations/SpotifyHelper$launchAlbum$1;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
invoke-direct {p0, p1}, Lk0/n/c/j;-><init>(I)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
check-cast p1, Lcom/discord/models/domain/ModelActivityMetaData;
|
|
|
|
|
2020-08-26 17:47:03 +00:00
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/utilities/integrations/SpotifyHelper$launchAlbum$1$1;->invoke(Lcom/discord/models/domain/ModelActivityMetaData;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
sget-object p1, Lkotlin/Unit;->a:Lkotlin/Unit;
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final invoke(Lcom/discord/models/domain/ModelActivityMetaData;)V
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelActivityMetaData;->getAlbumId()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
invoke-static {p1}, Landroid/net/Uri;->encode(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
|
|
|
const-string v2, "spotify:album:"
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string p1, "?utm_source=discord&utm_medium=mobile"
|
|
|
|
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string v1, "android.intent.action.VIEW"
|
|
|
|
|
|
|
|
invoke-direct {v0, v1, p1}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V
|
|
|
|
|
|
|
|
sget-object p1, Lcom/discord/utilities/integrations/SpotifyHelper;->INSTANCE:Lcom/discord/utilities/integrations/SpotifyHelper;
|
|
|
|
|
2020-08-26 17:47:03 +00:00
|
|
|
iget-object v1, p0, Lcom/discord/utilities/integrations/SpotifyHelper$launchAlbum$1$1;->this$0:Lcom/discord/utilities/integrations/SpotifyHelper$launchAlbum$1;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-26 17:47:03 +00:00
|
|
|
iget-object v1, v1, Lcom/discord/utilities/integrations/SpotifyHelper$launchAlbum$1;->$context:Landroid/content/Context;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-static {p1, v1, v0}, Lcom/discord/utilities/integrations/SpotifyHelper;->access$launchSpotifyIntent(Lcom/discord/utilities/integrations/SpotifyHelper;Landroid/content/Context;Landroid/content/Intent;)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|