a$a.smali
.class Lcom/tencent/open/a$a;
.super Landroid/webkit/WebViewClient;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/tencent/open/a;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x2
name = "a"
.end annotation
# instance fields
.field final synthetic a:Lcom/tencent/open/a;
# direct methods
.method private constructor <init>(Lcom/tencent/open/a;)V
.registers 2
iput-object p1, p0, Lcom/tencent/open/a$a;->a:Lcom/tencent/open/a;
invoke-direct {p0}, Landroid/webkit/WebViewClient;-><init>()V
return-void
.end method
.method synthetic constructor <init>(Lcom/tencent/open/a;Lcom/tencent/open/a$1;)V
.registers 3
invoke-direct {p0, p1}, Lcom/tencent/open/a$a;-><init>(Lcom/tencent/open/a;)V
return-void
.end method
# virtual methods
.method public onPageFinished(Landroid/webkit/WebView;Ljava/lang/String;)V
.registers 5
invoke-super {p0, p1, p2}, Landroid/webkit/WebViewClient;->onPageFinished(Landroid/webkit/WebView;Ljava/lang/String;)V
iget-object v0, p0, Lcom/tencent/open/a$a;->a:Lcom/tencent/open/a;
invoke-static {v0}, Lcom/tencent/open/a;->c(Lcom/tencent/open/a;)Lcom/tencent/open/c/a;
move-result-object v0
const/4 v1, 0x0
invoke-virtual {v0, v1}, Lcom/tencent/open/c/a;->setVisibility(I)V
return-void
.end method
.method public onPageStarted(Landroid/webkit/WebView;Ljava/lang/String;Landroid/graphics/Bitmap;)V
.registers 7
const-string/jumbo v0, "openSDK_LOG.TDialog"
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string/jumbo v2, "Webview loading URL: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v0, v1}, Lcom/tencent/open/a/f;->a(Ljava/lang/String;Ljava/lang/String;)V
invoke-super {p0, p1, p2, p3}, Landroid/webkit/WebViewClient;->onPageStarted(Landroid/webkit/WebView;Ljava/lang/String;Landroid/graphics/Bitmap;)V
return-void
.end method
.method public onReceivedError(Landroid/webkit/WebView;ILjava/lang/String;Ljava/lang/String;)V
.registers 8
invoke-super {p0, p1, p2, p3, p4}, Landroid/webkit/WebViewClient;->onReceivedError(Landroid/webkit/WebView;ILjava/lang/String;Ljava/lang/String;)V
iget-object v0, p0, Lcom/tencent/open/a$a;->a:Lcom/tencent/open/a;
invoke-static {v0}, Lcom/tencent/open/a;->b(Lcom/tencent/open/a;)Lcom/tencent/open/a$c;
move-result-object v0
new-instance v1, Lcom/tencent/tauth/d;
invoke-direct {v1, p2, p3, p4}, Lcom/tencent/tauth/d;-><init>(ILjava/lang/String;Ljava/lang/String;)V
invoke-virtual {v0, v1}, Lcom/tencent/open/a$c;->a(Lcom/tencent/tauth/d;)V
iget-object v0, p0, Lcom/tencent/open/a$a;->a:Lcom/tencent/open/a;
invoke-static {v0}, Lcom/tencent/open/a;->a(Lcom/tencent/open/a;)Ljava/lang/ref/WeakReference;
move-result-object v0
if-eqz v0, :cond_3c
iget-object v0, p0, Lcom/tencent/open/a$a;->a:Lcom/tencent/open/a;
invoke-static {v0}, Lcom/tencent/open/a;->a(Lcom/tencent/open/a;)Ljava/lang/ref/WeakReference;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v0
if-eqz v0, :cond_3c
iget-object v0, p0, Lcom/tencent/open/a$a;->a:Lcom/tencent/open/a;
invoke-static {v0}, Lcom/tencent/open/a;->a(Lcom/tencent/open/a;)Ljava/lang/ref/WeakReference;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/content/Context;
const-string/jumbo v1, "\u7f51\u7edc\u8fde\u63a5\u5f02\u5e38\u6216\u7cfb\u7edf\u9519\u8bef"
const/4 v2, 0x0
invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
move-result-object v0
invoke-virtual {v0}, Landroid/widget/Toast;->show()V
:cond_3c
iget-object v0, p0, Lcom/tencent/open/a$a;->a:Lcom/tencent/open/a;
invoke-virtual {v0}, Lcom/tencent/open/a;->dismiss()V
return-void
.end method
.method public shouldOverrideUrlLoading(Landroid/webkit/WebView;Ljava/lang/String;)Z
.registers 7
const/4 v1, 0x1
const-string/jumbo v0, "openSDK_LOG.TDialog"
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string/jumbo v3, "Redirect URL: "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v2, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-static {v0, v2}, Lcom/tencent/open/a/f;->a(Ljava/lang/String;Ljava/lang/String;)V
invoke-static {}, Lcom/tencent/open/utils/e;->a()Lcom/tencent/open/utils/e;
move-result-object v2
iget-object v0, p0, Lcom/tencent/open/a$a;->a:Lcom/tencent/open/a;
invoke-static {v0}, Lcom/tencent/open/a;->a(Lcom/tencent/open/a;)Ljava/lang/ref/WeakReference;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/content/Context;
const-string/jumbo v3, "auth://tauth.qq.com/"
invoke-virtual {v2, v0, v3}, Lcom/tencent/open/utils/e;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-virtual {p2, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_54
iget-object v0, p0, Lcom/tencent/open/a$a;->a:Lcom/tencent/open/a;
invoke-static {v0}, Lcom/tencent/open/a;->b(Lcom/tencent/open/a;)Lcom/tencent/open/a$c;
move-result-object v0
invoke-static {p2}, Lcom/tencent/open/utils/h;->c(Ljava/lang/String;)Lorg/json/JSONObject;
move-result-object v2
invoke-virtual {v0, v2}, Lcom/tencent/open/a$c;->a(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/tencent/open/a$a;->a:Lcom/tencent/open/a;
invoke-virtual {v0}, Lcom/tencent/open/a;->isShowing()Z
move-result v0
if-eqz v0, :cond_52
iget-object v0, p0, Lcom/tencent/open/a$a;->a:Lcom/tencent/open/a;
invoke-virtual {v0}, Lcom/tencent/open/a;->dismiss()V
:cond_52
move v0, v1
:goto_53
return v0
:cond_54
const-string/jumbo v0, "auth://cancel"
invoke-virtual {p2, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_75
iget-object v0, p0, Lcom/tencent/open/a$a;->a:Lcom/tencent/open/a;
invoke-static {v0}, Lcom/tencent/open/a;->b(Lcom/tencent/open/a;)Lcom/tencent/open/a$c;
move-result-object v0
invoke-virtual {v0}, Lcom/tencent/open/a$c;->a()V
iget-object v0, p0, Lcom/tencent/open/a$a;->a:Lcom/tencent/open/a;
invoke-virtual {v0}, Lcom/tencent/open/a;->isShowing()Z
move-result v0
if-eqz v0, :cond_73
iget-object v0, p0, Lcom/tencent/open/a$a;->a:Lcom/tencent/open/a;
invoke-virtual {v0}, Lcom/tencent/open/a;->dismiss()V
:cond_73
move v0, v1
goto :goto_53
:cond_75
const-string/jumbo v0, "auth://close"
invoke-virtual {p2, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_8d
iget-object v0, p0, Lcom/tencent/open/a$a;->a:Lcom/tencent/open/a;
invoke-virtual {v0}, Lcom/tencent/open/a;->isShowing()Z
move-result v0
if-eqz v0, :cond_8b
iget-object v0, p0, Lcom/tencent/open/a$a;->a:Lcom/tencent/open/a;
invoke-virtual {v0}, Lcom/tencent/open/a;->dismiss()V
:cond_8b
move v0, v1
goto :goto_53
:cond_8d
const-string/jumbo v0, "download://"
invoke-virtual {p2, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v0
if-nez v0, :cond_9f
const-string/jumbo v0, ".apk"
invoke-virtual {p2, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_fc
:cond_9f
:try_start_9f
const-string/jumbo v0, "download://"
invoke-virtual {p2, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_ee
const-string/jumbo v0, "download://"
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v0
invoke-virtual {p2, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Landroid/net/Uri;->decode(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
move-result-object v0
:goto_bb
new-instance v2, Landroid/content/Intent;
const-string/jumbo v3, "android.intent.action.VIEW"
invoke-direct {v2, v3, v0}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V
const/high16 v0, 0x10000000
invoke-virtual {v2, v0}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;
iget-object v0, p0, Lcom/tencent/open/a$a;->a:Lcom/tencent/open/a;
invoke-static {v0}, Lcom/tencent/open/a;->a(Lcom/tencent/open/a;)Ljava/lang/ref/WeakReference;
move-result-object v0
if-eqz v0, :cond_eb
iget-object v0, p0, Lcom/tencent/open/a$a;->a:Lcom/tencent/open/a;
invoke-static {v0}, Lcom/tencent/open/a;->a(Lcom/tencent/open/a;)Ljava/lang/ref/WeakReference;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v0
if-eqz v0, :cond_eb
iget-object v0, p0, Lcom/tencent/open/a$a;->a:Lcom/tencent/open/a;
invoke-static {v0}, Lcom/tencent/open/a;->a(Lcom/tencent/open/a;)Ljava/lang/ref/WeakReference;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/content/Context;
invoke-virtual {v0, v2}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
:cond_eb
:goto_eb
move v0, v1
goto/16 :goto_53
:cond_ee
invoke-static {p2}, Landroid/net/Uri;->decode(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
:try_end_f5
.catch Ljava/lang/Exception; {:try_start_9f .. :try_end_f5} :catch_f7
move-result-object v0
goto :goto_bb
:catch_f7
move-exception v0
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
goto :goto_eb
:cond_fc
const-string/jumbo v0, "auth://progress"
invoke-virtual {p2, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_108
move v0, v1
goto/16 :goto_53
:cond_108
const/4 v0, 0x0
goto/16 :goto_53
.end method