LotteryActivity$b.smali
.class Lcom/cleanmaster/lottery/ui/LotteryActivity$b;
.super Landroid/webkit/WebViewClient;
.source "LotteryActivity.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/cleanmaster/lottery/ui/LotteryActivity;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = "b"
.end annotation
# instance fields
.field final synthetic a:Lcom/cleanmaster/lottery/ui/LotteryActivity;
# direct methods
.method constructor <init>(Lcom/cleanmaster/lottery/ui/LotteryActivity;)V
.registers 2
.prologue
.line 95
iput-object p1, p0, Lcom/cleanmaster/lottery/ui/LotteryActivity$b;->a:Lcom/cleanmaster/lottery/ui/LotteryActivity;
invoke-direct {p0}, Landroid/webkit/WebViewClient;-><init>()V
return-void
.end method
# virtual methods
.method public onPageFinished(Landroid/webkit/WebView;Ljava/lang/String;)V
.registers 6
.prologue
const/4 v2, 0x0
.line 131
iget-object v0, p0, Lcom/cleanmaster/lottery/ui/LotteryActivity$b;->a:Lcom/cleanmaster/lottery/ui/LotteryActivity;
invoke-static {v0}, Lcom/cleanmaster/lottery/ui/LotteryActivity;->a(Lcom/cleanmaster/lottery/ui/LotteryActivity;)Landroid/widget/FrameLayout;
move-result-object v0
if-nez v0, :cond_a
.line 142
:goto_9
return-void
.line 134
:cond_a
iget-object v0, p0, Lcom/cleanmaster/lottery/ui/LotteryActivity$b;->a:Lcom/cleanmaster/lottery/ui/LotteryActivity;
invoke-static {v0}, Lcom/cleanmaster/lottery/ui/LotteryActivity;->b(Lcom/cleanmaster/lottery/ui/LotteryActivity;)Z
move-result v0
if-eqz v0, :cond_2e
.line 135
iget-object v0, p0, Lcom/cleanmaster/lottery/ui/LotteryActivity$b;->a:Lcom/cleanmaster/lottery/ui/LotteryActivity;
invoke-static {v0}, Lcom/cleanmaster/lottery/ui/LotteryActivity;->a(Lcom/cleanmaster/lottery/ui/LotteryActivity;)Landroid/widget/FrameLayout;
move-result-object v0
const/16 v1, 0x8
invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V
.line 139
:goto_1d
iget-object v0, p0, Lcom/cleanmaster/lottery/ui/LotteryActivity$b;->a:Lcom/cleanmaster/lottery/ui/LotteryActivity;
invoke-static {v0, v2}, Lcom/cleanmaster/lottery/ui/LotteryActivity;->c(Lcom/cleanmaster/lottery/ui/LotteryActivity;Z)Z
.line 140
iget-object v0, p0, Lcom/cleanmaster/lottery/ui/LotteryActivity$b;->a:Lcom/cleanmaster/lottery/ui/LotteryActivity;
invoke-static {v0, v2}, Lcom/cleanmaster/lottery/ui/LotteryActivity;->a(Lcom/cleanmaster/lottery/ui/LotteryActivity;Z)V
.line 141
iget-object v0, p0, Lcom/cleanmaster/lottery/ui/LotteryActivity$b;->a:Lcom/cleanmaster/lottery/ui/LotteryActivity;
const/4 v1, 0x1
invoke-static {v0, v1}, Lcom/cleanmaster/lottery/ui/LotteryActivity;->d(Lcom/cleanmaster/lottery/ui/LotteryActivity;Z)Z
goto :goto_9
.line 137
:cond_2e
iget-object v0, p0, Lcom/cleanmaster/lottery/ui/LotteryActivity$b;->a:Lcom/cleanmaster/lottery/ui/LotteryActivity;
invoke-static {v0}, Lcom/cleanmaster/lottery/ui/LotteryActivity;->a(Lcom/cleanmaster/lottery/ui/LotteryActivity;)Landroid/widget/FrameLayout;
move-result-object v0
invoke-virtual {v0, v2}, Landroid/widget/FrameLayout;->setVisibility(I)V
goto :goto_1d
.end method
.method public onPageStarted(Landroid/webkit/WebView;Ljava/lang/String;Landroid/graphics/Bitmap;)V
.registers 6
.prologue
.line 99
invoke-super {p0, p1, p2, p3}, Landroid/webkit/WebViewClient;->onPageStarted(Landroid/webkit/WebView;Ljava/lang/String;Landroid/graphics/Bitmap;)V
.line 100
iget-object v0, p0, Lcom/cleanmaster/lottery/ui/LotteryActivity$b;->a:Lcom/cleanmaster/lottery/ui/LotteryActivity;
invoke-static {v0}, Lcom/cleanmaster/lottery/ui/LotteryActivity;->a(Lcom/cleanmaster/lottery/ui/LotteryActivity;)Landroid/widget/FrameLayout;
move-result-object v0
if-nez v0, :cond_c
.line 106
:goto_b
return-void
.line 103
:cond_c
iget-object v0, p0, Lcom/cleanmaster/lottery/ui/LotteryActivity$b;->a:Lcom/cleanmaster/lottery/ui/LotteryActivity;
invoke-static {v0}, Lcom/cleanmaster/lottery/ui/LotteryActivity;->a(Lcom/cleanmaster/lottery/ui/LotteryActivity;)Landroid/widget/FrameLayout;
move-result-object v0
const/16 v1, 0x8
invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V
.line 104
iget-object v0, p0, Lcom/cleanmaster/lottery/ui/LotteryActivity$b;->a:Lcom/cleanmaster/lottery/ui/LotteryActivity;
const/4 v1, 0x1
invoke-static {v0, v1}, Lcom/cleanmaster/lottery/ui/LotteryActivity;->a(Lcom/cleanmaster/lottery/ui/LotteryActivity;Z)V
.line 105
iget-object v0, p0, Lcom/cleanmaster/lottery/ui/LotteryActivity$b;->a:Lcom/cleanmaster/lottery/ui/LotteryActivity;
const/4 v1, 0x0
invoke-static {v0, v1}, Lcom/cleanmaster/lottery/ui/LotteryActivity;->b(Lcom/cleanmaster/lottery/ui/LotteryActivity;Z)V
goto :goto_b
.end method
.method public onReceivedError(Landroid/webkit/WebView;ILjava/lang/String;Ljava/lang/String;)V
.registers 9
.prologue
const v3, 0x7f020101
const/4 v2, 0x1
.line 146
iget-object v0, p0, Lcom/cleanmaster/lottery/ui/LotteryActivity$b;->a:Lcom/cleanmaster/lottery/ui/LotteryActivity;
invoke-static {v0, v2}, Lcom/cleanmaster/lottery/ui/LotteryActivity;->c(Lcom/cleanmaster/lottery/ui/LotteryActivity;Z)Z
.line 147
iget-object v0, p0, Lcom/cleanmaster/lottery/ui/LotteryActivity$b;->a:Lcom/cleanmaster/lottery/ui/LotteryActivity;
const/4 v1, 0x0
invoke-static {v0, v1}, Lcom/cleanmaster/lottery/ui/LotteryActivity;->a(Lcom/cleanmaster/lottery/ui/LotteryActivity;Z)V
.line 148
iget-object v0, p0, Lcom/cleanmaster/lottery/ui/LotteryActivity$b;->a:Lcom/cleanmaster/lottery/ui/LotteryActivity;
invoke-static {v0, v2}, Lcom/cleanmaster/lottery/ui/LotteryActivity;->b(Lcom/cleanmaster/lottery/ui/LotteryActivity;Z)V
.line 149
invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/HostHelper;->getAppContext()Landroid/content/Context;
move-result-object v0
invoke-static {v0}, Lcom/cleanmaster/hpsharelib/base/util/net/NetworkUtil;->isNetworkActive(Landroid/content/Context;)Z
move-result v0
if-eqz v0, :cond_34
.line 150
iget-object v0, p0, Lcom/cleanmaster/lottery/ui/LotteryActivity$b;->a:Lcom/cleanmaster/lottery/ui/LotteryActivity;
invoke-static {v0}, Lcom/cleanmaster/lottery/ui/LotteryActivity;->c(Lcom/cleanmaster/lottery/ui/LotteryActivity;)Lcom/cleanmaster/ui/app/widget/RefreshNotifyView;
move-result-object v0
const v1, 0x7f0a08ae
invoke-virtual {v0, v1}, Lcom/cleanmaster/ui/app/widget/RefreshNotifyView;->setRefreshText(I)V
.line 151
iget-object v0, p0, Lcom/cleanmaster/lottery/ui/LotteryActivity$b;->a:Lcom/cleanmaster/lottery/ui/LotteryActivity;
invoke-static {v0}, Lcom/cleanmaster/lottery/ui/LotteryActivity;->c(Lcom/cleanmaster/lottery/ui/LotteryActivity;)Lcom/cleanmaster/ui/app/widget/RefreshNotifyView;
move-result-object v0
invoke-virtual {v0, v3}, Lcom/cleanmaster/ui/app/widget/RefreshNotifyView;->setRefreshImage(I)V
.line 156
:goto_33
return-void
.line 153
:cond_34
iget-object v0, p0, Lcom/cleanmaster/lottery/ui/LotteryActivity$b;->a:Lcom/cleanmaster/lottery/ui/LotteryActivity;
invoke-static {v0}, Lcom/cleanmaster/lottery/ui/LotteryActivity;->c(Lcom/cleanmaster/lottery/ui/LotteryActivity;)Lcom/cleanmaster/ui/app/widget/RefreshNotifyView;
move-result-object v0
const v1, 0x7f0a070e
invoke-virtual {v0, v1}, Lcom/cleanmaster/ui/app/widget/RefreshNotifyView;->setRefreshText(I)V
.line 154
iget-object v0, p0, Lcom/cleanmaster/lottery/ui/LotteryActivity$b;->a:Lcom/cleanmaster/lottery/ui/LotteryActivity;
invoke-static {v0}, Lcom/cleanmaster/lottery/ui/LotteryActivity;->c(Lcom/cleanmaster/lottery/ui/LotteryActivity;)Lcom/cleanmaster/ui/app/widget/RefreshNotifyView;
move-result-object v0
invoke-virtual {v0, v3}, Lcom/cleanmaster/ui/app/widget/RefreshNotifyView;->setRefreshImage(I)V
goto :goto_33
.end method
.method public shouldOverrideUrlLoading(Landroid/webkit/WebView;Ljava/lang/String;)Z
.registers 7
.prologue
const/4 v0, 0x1
.line 110
const-string/jumbo v1, "tel:"
invoke-virtual {p2, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_1b
.line 111
new-instance v1, Landroid/content/Intent;
const-string v2, "android.intent.action.DIAL"
invoke-static {p2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
move-result-object v3
invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V
.line 112
iget-object v2, p0, Lcom/cleanmaster/lottery/ui/LotteryActivity$b;->a:Lcom/cleanmaster/lottery/ui/LotteryActivity;
invoke-virtual {v2, v1}, Lcom/cleanmaster/lottery/ui/LotteryActivity;->startActivity(Landroid/content/Intent;)V
.line 126
:goto_1a
return v0
.line 114
:cond_1b
const-string/jumbo v1, "sms:"
invoke-virtual {p2, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_35
.line 115
new-instance v1, Landroid/content/Intent;
const-string v2, "android.intent.action.SENDTO"
invoke-static {p2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
move-result-object v3
invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V
.line 116
iget-object v2, p0, Lcom/cleanmaster/lottery/ui/LotteryActivity$b;->a:Lcom/cleanmaster/lottery/ui/LotteryActivity;
invoke-virtual {v2, v1}, Lcom/cleanmaster/lottery/ui/LotteryActivity;->startActivity(Landroid/content/Intent;)V
goto :goto_1a
.line 118
:cond_35
const-string/jumbo v1, "weixin:"
invoke-virtual {p2, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v1
if-nez v1, :cond_46
const-string v1, "alipays:"
invoke-virtual {p2, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_5d
.line 119
:cond_46
new-instance v1, Landroid/content/Intent;
invoke-direct {v1}, Landroid/content/Intent;-><init>()V
.line 120
const-string v2, "android.intent.action.VIEW"
invoke-virtual {v1, v2}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;
.line 121
invoke-static {p2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
move-result-object v2
invoke-virtual {v1, v2}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;
.line 122
iget-object v2, p0, Lcom/cleanmaster/lottery/ui/LotteryActivity$b;->a:Lcom/cleanmaster/lottery/ui/LotteryActivity;
invoke-virtual {v2, v1}, Lcom/cleanmaster/lottery/ui/LotteryActivity;->startActivity(Landroid/content/Intent;)V
goto :goto_1a
.line 125
:cond_5d
invoke-virtual {p1, p2}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V
.line 126
const/4 v0, 0x0
goto :goto_1a
.end method