apkfuckery/com.discord/smali/com/discord/utilities/integrations/SpotifyHelper$openPlayStoreForSpotify$1.smali
2019-10-31 01:47:18 +01:00

116 lines
3 KiB
Smali

.class final Lcom/discord/utilities/integrations/SpotifyHelper$openPlayStoreForSpotify$1;
.super Ljava/lang/Object;
.source "SpotifyHelper.kt"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/discord/utilities/integrations/SpotifyHelper;->openPlayStoreForSpotify(Landroid/content/Context;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = null
.end annotation
# instance fields
.field final synthetic $context:Landroid/content/Context;
# direct methods
.method constructor <init>(Landroid/content/Context;)V
.locals 0
iput-object p1, p0, Lcom/discord/utilities/integrations/SpotifyHelper$openPlayStoreForSpotify$1;->$context:Landroid/content/Context;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final run()V
.locals 3
:try_start_0
new-instance v0, Ljava/net/URL;
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "https://app.adjust.com/ndjczk?campaign="
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object v2, p0, Lcom/discord/utilities/integrations/SpotifyHelper$openPlayStoreForSpotify$1;->$context:Landroid/content/Context;
invoke-virtual {v2}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/net/URL;-><init>(Ljava/lang/String;)V
invoke-virtual {v0}, Ljava/net/URL;->openStream()Ljava/io/InputStream;
move-result-object v0
check-cast v0, Ljava/io/Closeable;
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
:try_start_1
sget-object v1, Lkotlin/Unit;->bgs:Lkotlin/Unit;
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
const/4 v1, 0x0
:try_start_2
invoke-static {v0, v1}, Lkotlin/d/a;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
:try_end_2
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
return-void
:catchall_0
move-exception v1
:try_start_3
throw v1
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_1
:catchall_1
move-exception v2
:try_start_4
invoke-static {v0, v1}, Lkotlin/d/a;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
throw v2
:try_end_4
.catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_0
:catch_0
move-exception v0
check-cast v0, Ljava/lang/Throwable;
const-string v1, "SPOTIFY"
const-string v2, "Couldn\'t open tracking url"
invoke-static {v1, v2, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
return-void
.end method