251 lines
6.2 KiB
Smali
251 lines
6.2 KiB
Smali
.class Lcom/my/target/ClickHandler$d;
|
|
.super Lcom/my/target/ClickHandler$e;
|
|
.source "ClickHandler.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/my/target/ClickHandler;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0xa
|
|
name = "d"
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>(Ljava/lang/String;Lcom/my/target/AdBanner;)V
|
|
.locals 1
|
|
.param p1 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Lcom/my/target/AdBanner;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
invoke-direct {p0, p1, p2, v0}, Lcom/my/target/ClickHandler$e;-><init>(Ljava/lang/String;Lcom/my/target/AdBanner;Lcom/my/target/ClickHandler$a;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method synthetic constructor <init>(Ljava/lang/String;Lcom/my/target/AdBanner;Lcom/my/target/ClickHandler$a;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1, p2}, Lcom/my/target/ClickHandler$d;-><init>(Ljava/lang/String;Lcom/my/target/AdBanner;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(Ljava/lang/String;Landroid/content/Context;)Z
|
|
.locals 2
|
|
.param p1 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 5
|
|
:try_start_0
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
const-string v1, "android.intent.action.VIEW"
|
|
|
|
invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, v1, p1}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V
|
|
|
|
.line 6
|
|
instance-of p1, p2, Landroid/app/Activity;
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const/high16 p1, 0x10000000
|
|
|
|
.line 7
|
|
invoke-virtual {v0, p1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;
|
|
|
|
.line 8
|
|
:cond_0
|
|
invoke-virtual {p2, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
:catch_0
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method private b(Ljava/lang/String;Landroid/content/Context;)Z
|
|
.locals 5
|
|
.param p1 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
const-string v0, "com.android.vending"
|
|
|
|
.line 1
|
|
:try_start_0
|
|
iget-object v1, p0, Lcom/my/target/ClickHandler$b;->a:Lcom/my/target/AdBanner;
|
|
|
|
invoke-virtual {v1}, Lcom/my/target/AdBanner;->A()Z
|
|
|
|
move-result v1
|
|
|
|
const/high16 v2, 0x10000000
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 2
|
|
invoke-virtual {p2}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v0}, Landroid/content/pm/PackageManager;->getLaunchIntentForPackage(Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
.line 3
|
|
new-instance v3, Landroid/content/ComponentName;
|
|
|
|
const-string v4, "com.google.android.finsky.activities.LaunchUrlHandlerActivity"
|
|
|
|
invoke-direct {v3, v0, v4}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
invoke-virtual {v1, v3}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;
|
|
|
|
.line 5
|
|
instance-of v0, p2, Landroid/app/Activity;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 6
|
|
invoke-virtual {v1, v2}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;
|
|
|
|
.line 7
|
|
:cond_0
|
|
invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v1, p1}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;
|
|
|
|
.line 8
|
|
invoke-virtual {p2, v1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 9
|
|
:cond_1
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
const-string v1, "android.intent.action.VIEW"
|
|
|
|
invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, v1, p1}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V
|
|
|
|
.line 10
|
|
instance-of p1, p2, Landroid/app/Activity;
|
|
|
|
if-nez p1, :cond_2
|
|
|
|
.line 11
|
|
invoke-virtual {v0, v2}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;
|
|
|
|
.line 12
|
|
:cond_2
|
|
invoke-virtual {p2, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
:cond_3
|
|
:goto_0
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
:catch_0
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method protected a(Landroid/content/Context;)Z
|
|
.locals 2
|
|
.param p1 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/my/target/ClickHandler$e;->b:Ljava/lang/String;
|
|
|
|
invoke-static {v0}, Lcom/my/target/UrlResolver;->b(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lcom/my/target/ClickHandler$e;->b:Ljava/lang/String;
|
|
|
|
invoke-direct {p0, v0, p1}, Lcom/my/target/ClickHandler$d;->a(Ljava/lang/String;Landroid/content/Context;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
return v1
|
|
|
|
.line 3
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/my/target/ClickHandler$e;->b:Ljava/lang/String;
|
|
|
|
invoke-direct {p0, v0, p1}, Lcom/my/target/ClickHandler$d;->b(Ljava/lang/String;Landroid/content/Context;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
return v1
|
|
|
|
.line 4
|
|
:cond_1
|
|
invoke-super {p0, p1}, Lcom/my/target/ClickHandler$e;->a(Landroid/content/Context;)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|