105 lines
2.4 KiB
Smali
105 lines
2.4 KiB
Smali
.class final Lcom/my/target/FooterView$a;
|
|
.super Ljava/lang/Object;
|
|
.source "FooterView.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/view/View$OnClickListener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/my/target/FooterView;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0xa
|
|
name = "a"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final a:Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>(Landroid/content/Context;)V
|
|
.locals 0
|
|
.param p1 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 2
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/my/target/FooterView$a;->a:Landroid/content/Context;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method synthetic constructor <init>(Landroid/content/Context;B)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1}, Lcom/my/target/FooterView$a;-><init>(Landroid/content/Context;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final onClick(Landroid/view/View;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
:try_start_0
|
|
new-instance p1, Landroid/content/Intent;
|
|
|
|
const-string v0, "android.intent.action.VIEW"
|
|
|
|
const-string v1, "https://target.my.com/"
|
|
|
|
invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {p1, v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lcom/my/target/FooterView$a;->a:Landroid/content/Context;
|
|
|
|
instance-of v0, v0, Landroid/app/Activity;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/high16 v0, 0x10000000
|
|
|
|
.line 3
|
|
invoke-virtual {p1, v0}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;
|
|
|
|
.line 4
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/my/target/FooterView$a;->a:Landroid/content/Context;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
.line 5
|
|
invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Lcom/my/target/Tracer;->a(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|