AgentWebView$AgentWebClient.smali
.class public Lcom/just/agentweb/AgentWebView$AgentWebClient;
.super Lcom/just/agentweb/MiddlewareWebClientBase;
.source "AgentWebView.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/just/agentweb/AgentWebView;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "AgentWebClient"
.end annotation
# instance fields
.field private mAgentWebView:Lcom/just/agentweb/AgentWebView;
# direct methods
.method private constructor <init>(Lcom/just/agentweb/AgentWebView;)V
.registers 2
.line 2
invoke-direct {p0}, Lcom/just/agentweb/MiddlewareWebClientBase;-><init>()V
.line 3
iput-object p1, p0, Lcom/just/agentweb/AgentWebView$AgentWebClient;->mAgentWebView:Lcom/just/agentweb/AgentWebView;
return-void
.end method
.method synthetic constructor <init>(Lcom/just/agentweb/AgentWebView;Lcom/just/agentweb/AgentWebView$1;)V
.registers 3
.line 1
invoke-direct {p0, p1}, Lcom/just/agentweb/AgentWebView$AgentWebClient;-><init>(Lcom/just/agentweb/AgentWebView;)V
return-void
.end method
# virtual methods
.method public onPageFinished(Landroid/webkit/WebView;Ljava/lang/String;)V
.registers 5
.line 1
invoke-super {p0, p1, p2}, Lcom/just/agentweb/WebViewClientDelegate;->onPageFinished(Landroid/webkit/WebView;Ljava/lang/String;)V
.line 2
iget-object p2, p0, Lcom/just/agentweb/AgentWebView$AgentWebClient;->mAgentWebView:Lcom/just/agentweb/AgentWebView;
# getter for: Lcom/just/agentweb/AgentWebView;->mFixedOnReceivedTitle:Lcom/just/agentweb/AgentWebView$FixedOnReceivedTitle;
invoke-static {p2}, Lcom/just/agentweb/AgentWebView;->access$800(Lcom/just/agentweb/AgentWebView;)Lcom/just/agentweb/AgentWebView$FixedOnReceivedTitle;
move-result-object p2
invoke-virtual {p2, p1}, Lcom/just/agentweb/AgentWebView$FixedOnReceivedTitle;->onPageFinished(Landroid/webkit/WebView;)V
.line 3
invoke-static {}, Lcom/just/agentweb/LogUtils;->isDebug()Z
move-result p2
if-eqz p2, :cond_2e
.line 4
# getter for: Lcom/just/agentweb/AgentWebView;->TAG:Ljava/lang/String;
invoke-static {}, Lcom/just/agentweb/AgentWebView;->access$500()Ljava/lang/String;
move-result-object p2
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "onPageFinished.url = "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Landroid/webkit/WebView;->getUrl()Ljava/lang/String;
move-result-object p1
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-static {p2, p1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
:cond_2e
return-void
.end method
.method public onPageStarted(Landroid/webkit/WebView;Ljava/lang/String;Landroid/graphics/Bitmap;)V
.registers 6
.line 1
invoke-super {p0, p1, p2, p3}, Lcom/just/agentweb/WebViewClientDelegate;->onPageStarted(Landroid/webkit/WebView;Ljava/lang/String;Landroid/graphics/Bitmap;)V
.line 2
iget-object p3, p0, Lcom/just/agentweb/AgentWebView$AgentWebClient;->mAgentWebView:Lcom/just/agentweb/AgentWebView;
# getter for: Lcom/just/agentweb/AgentWebView;->mJsCallJavas:Ljava/util/Map;
invoke-static {p3}, Lcom/just/agentweb/AgentWebView;->access$300(Lcom/just/agentweb/AgentWebView;)Ljava/util/Map;
move-result-object p3
if-eqz p3, :cond_32
.line 3
iget-object p3, p0, Lcom/just/agentweb/AgentWebView$AgentWebClient;->mAgentWebView:Lcom/just/agentweb/AgentWebView;
# invokes: Lcom/just/agentweb/AgentWebView;->injectJavaScript()V
invoke-static {p3}, Lcom/just/agentweb/AgentWebView;->access$400(Lcom/just/agentweb/AgentWebView;)V
.line 4
invoke-static {}, Lcom/just/agentweb/LogUtils;->isDebug()Z
move-result p3
if-eqz p3, :cond_32
.line 5
# getter for: Lcom/just/agentweb/AgentWebView;->TAG:Ljava/lang/String;
invoke-static {}, Lcom/just/agentweb/AgentWebView;->access$500()Ljava/lang/String;
move-result-object p3
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "injectJavaScript, onPageStarted.url = "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Landroid/webkit/WebView;->getUrl()Ljava/lang/String;
move-result-object p1
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-static {p3, p1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 6
:cond_32
iget-object p1, p0, Lcom/just/agentweb/AgentWebView$AgentWebClient;->mAgentWebView:Lcom/just/agentweb/AgentWebView;
# getter for: Lcom/just/agentweb/AgentWebView;->mInjectJavaScripts:Ljava/util/Map;
invoke-static {p1}, Lcom/just/agentweb/AgentWebView;->access$600(Lcom/just/agentweb/AgentWebView;)Ljava/util/Map;
move-result-object p1
if-eqz p1, :cond_3f
.line 7
iget-object p1, p0, Lcom/just/agentweb/AgentWebView$AgentWebClient;->mAgentWebView:Lcom/just/agentweb/AgentWebView;
# invokes: Lcom/just/agentweb/AgentWebView;->injectExtraJavaScript()V
invoke-static {p1}, Lcom/just/agentweb/AgentWebView;->access$700(Lcom/just/agentweb/AgentWebView;)V
.line 8
:cond_3f
iget-object p1, p0, Lcom/just/agentweb/AgentWebView$AgentWebClient;->mAgentWebView:Lcom/just/agentweb/AgentWebView;
# getter for: Lcom/just/agentweb/AgentWebView;->mFixedOnReceivedTitle:Lcom/just/agentweb/AgentWebView$FixedOnReceivedTitle;
invoke-static {p1}, Lcom/just/agentweb/AgentWebView;->access$800(Lcom/just/agentweb/AgentWebView;)Lcom/just/agentweb/AgentWebView$FixedOnReceivedTitle;
move-result-object p1
invoke-virtual {p1}, Lcom/just/agentweb/AgentWebView$FixedOnReceivedTitle;->onPageStarted()V
.line 9
iget-object p1, p0, Lcom/just/agentweb/AgentWebView$AgentWebClient;->mAgentWebView:Lcom/just/agentweb/AgentWebView;
invoke-virtual {p1, p2}, Lcom/just/agentweb/AgentWebView;->fixedAccessibilityInjectorExceptionForOnPageFinished(Ljava/lang/String;)V
return-void
.end method