AgentWebViewUtils$1.smali

.class final Lcom/sandboxol/center/utils/AgentWebViewUtils$1;
.super Lcom/just/agentweb/WebViewClient;
.source "AgentWebViewUtils.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/sandboxol/center/utils/AgentWebViewUtils;->initAgentWebView(Landroid/app/Activity;Landroid/view/ViewGroup;Ljava/lang/String;)Lcom/just/agentweb/AgentWeb;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation


# direct methods
.method constructor <init>()V
    .registers 1

    .line 1
    invoke-direct {p0}, Lcom/just/agentweb/WebViewClient;-><init>()V

    return-void
.end method


# virtual methods
.method public onPageFinished(Landroid/webkit/WebView;Ljava/lang/String;)V
    .registers 3

    .line 1
    invoke-super {p0, p1, p2}, Lcom/just/agentweb/WebViewClientDelegate;->onPageFinished(Landroid/webkit/WebView;Ljava/lang/String;)V

    if-eqz p1, :cond_f

    const-string p2, "javascript:(function() { document.querySelector(\'.ytp-chrome-top\').style.display=\'none\';  })();"

    .line 2
    invoke-virtual {p1, p2}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    const-string p2, "javascript:document.onclick= function(){document.querySelector(\'.ytp-pause-overlay\').style.visibility=\'hidden\'}"

    .line 3
    invoke-virtual {p1, p2}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    :cond_f
    return-void
.end method