.class Lcom/in2wow/sdk/q$b;
.super Landroid/webkit/WebChromeClient;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/in2wow/sdk/q;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "b"
.end annotation


# instance fields
.field final synthetic a:Lcom/in2wow/sdk/q;

.field private b:Landroid/view/View;

.field private c:Landroid/webkit/WebChromeClient$CustomViewCallback;


# direct methods
.method private constructor <init>(Lcom/in2wow/sdk/q;)V
    .locals 0

    .line 212
    iput-object p1, p0, Lcom/in2wow/sdk/q$b;->a:Lcom/in2wow/sdk/q;

    invoke-direct {p0}, Landroid/webkit/WebChromeClient;-><init>()V

    const/4 p1, 0x0

    .line 228
    iput-object p1, p0, Lcom/in2wow/sdk/q$b;->b:Landroid/view/View;

    .line 229
    iput-object p1, p0, Lcom/in2wow/sdk/q$b;->c:Landroid/webkit/WebChromeClient$CustomViewCallback;

    return-void
.end method

.method synthetic constructor <init>(Lcom/in2wow/sdk/q;Lcom/in2wow/sdk/q$b;)V
    .locals 0

    .line 212
    invoke-direct {p0, p1}, Lcom/in2wow/sdk/q$b;-><init>(Lcom/in2wow/sdk/q;)V

    return-void
.end method


# virtual methods
.method public a()Z
    .locals 1

    .line 232
    iget-object v0, p0, Lcom/in2wow/sdk/q$b;->b:Landroid/view/View;

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    return v0

    :cond_0
    const/4 v0, 0x0

    return v0
.end method

.method public onHideCustomView()V
    .locals 3

    .line 269
    :try_start_0
    iget-object v0, p0, Lcom/in2wow/sdk/q$b;->b:Landroid/view/View;

    if-eqz v0, :cond_1

    .line 270
    iget-object v0, p0, Lcom/in2wow/sdk/q$b;->c:Landroid/webkit/WebChromeClient$CustomViewCallback;

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    .line 271
    iget-object v0, p0, Lcom/in2wow/sdk/q$b;->c:Landroid/webkit/WebChromeClient$CustomViewCallback;

    invoke-interface {v0}, Landroid/webkit/WebChromeClient$CustomViewCallback;->onCustomViewHidden()V

    .line 272
    iput-object v1, p0, Lcom/in2wow/sdk/q$b;->c:Landroid/webkit/WebChromeClient$CustomViewCallback;

    .line 274
    :cond_0
    iget-object v0, p0, Lcom/in2wow/sdk/q$b;->b:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    .line 275
    iget-object v2, p0, Lcom/in2wow/sdk/q$b;->b:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 276
    iget-object v0, p0, Lcom/in2wow/sdk/q$b;->a:Lcom/in2wow/sdk/q;

    invoke-static {v0}, Lcom/in2wow/sdk/q;->h(Lcom/in2wow/sdk/q;)Landroid/webkit/WebView;

    move-result-object v0

    const/4 v2, 0x0

    invoke-virtual {v0, v2}, Landroid/webkit/WebView;->setVisibility(I)V

    .line 277
    iput-object v1, p0, Lcom/in2wow/sdk/q$b;->b:Landroid/view/View;

    .line 278
    iget-object v0, p0, Lcom/in2wow/sdk/q$b;->a:Lcom/in2wow/sdk/q;

    iget-object v1, p0, Lcom/in2wow/sdk/q$b;->a:Lcom/in2wow/sdk/q;

    invoke-static {v1}, Lcom/in2wow/sdk/q;->h(Lcom/in2wow/sdk/q;)Landroid/webkit/WebView;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/in2wow/sdk/q;->a(Lcom/in2wow/sdk/q;Landroid/webkit/WebView;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    :cond_1
    return-void
.end method

.method public onProgressChanged(Landroid/webkit/WebView;I)V
    .locals 0

    .line 215
    iget-object p1, p0, Lcom/in2wow/sdk/q$b;->a:Lcom/in2wow/sdk/q;

    invoke-static {p1}, Lcom/in2wow/sdk/q;->e(Lcom/in2wow/sdk/q;)Z

    move-result p1

    if-eqz p1, :cond_0

    iget-object p1, p0, Lcom/in2wow/sdk/q$b;->a:Lcom/in2wow/sdk/q;

    invoke-static {p1}, Lcom/in2wow/sdk/q;->d(Lcom/in2wow/sdk/q;)Z

    move-result p1

    if-nez p1, :cond_0

    .line 216
    iget-object p1, p0, Lcom/in2wow/sdk/q$b;->a:Lcom/in2wow/sdk/q;

    invoke-static {p1}, Lcom/in2wow/sdk/q;->c(Lcom/in2wow/sdk/q;)Lcom/in2wow/sdk/q$a;

    move-result-object p1

    invoke-virtual {p1, p2}, Lcom/in2wow/sdk/q$a;->a(I)V

    :cond_0
    return-void
.end method

.method public onReceivedTitle(Landroid/webkit/WebView;Ljava/lang/String;)V
    .locals 1

    .line 222
    iget-object p1, p0, Lcom/in2wow/sdk/q$b;->a:Lcom/in2wow/sdk/q;

    invoke-static {p1}, Lcom/in2wow/sdk/q;->a(Lcom/in2wow/sdk/q;)Landroid/widget/TextView;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 223
    iget-object p1, p0, Lcom/in2wow/sdk/q$b;->a:Lcom/in2wow/sdk/q;

    invoke-static {p1}, Lcom/in2wow/sdk/q;->a(Lcom/in2wow/sdk/q;)Landroid/widget/TextView;

    move-result-object p1

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 224
    iget-object p1, p0, Lcom/in2wow/sdk/q$b;->a:Lcom/in2wow/sdk/q;

    invoke-static {p1}, Lcom/in2wow/sdk/q;->f(Lcom/in2wow/sdk/q;)Landroid/widget/TextView;

    move-result-object p1

    iget-object p2, p0, Lcom/in2wow/sdk/q$b;->a:Lcom/in2wow/sdk/q;

    iget-object v0, p0, Lcom/in2wow/sdk/q$b;->a:Lcom/in2wow/sdk/q;

    invoke-static {v0}, Lcom/in2wow/sdk/q;->g(Lcom/in2wow/sdk/q;)Ljava/lang/String;

    move-result-object v0

    invoke-static {p2, v0}, Lcom/in2wow/sdk/q;->b(Lcom/in2wow/sdk/q;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    return-void
.end method

.method public onShowCustomView(Landroid/view/View;Landroid/webkit/WebChromeClient$CustomViewCallback;)V
    .locals 3

    .line 242
    :try_start_0
    iget-object v0, p0, Lcom/in2wow/sdk/q$b;->c:Landroid/webkit/WebChromeClient$CustomViewCallback;

    if-eqz v0, :cond_0

    .line 243
    iget-object p1, p0, Lcom/in2wow/sdk/q$b;->c:Landroid/webkit/WebChromeClient$CustomViewCallback;

    invoke-interface {p1}, Landroid/webkit/WebChromeClient$CustomViewCallback;->onCustomViewHidden()V

    const/4 p1, 0x0

    .line 244
    iput-object p1, p0, Lcom/in2wow/sdk/q$b;->c:Landroid/webkit/WebChromeClient$CustomViewCallback;

    return-void

    .line 247
    :cond_0
    iget-object v0, p0, Lcom/in2wow/sdk/q$b;->a:Lcom/in2wow/sdk/q;

    invoke-static {v0}, Lcom/in2wow/sdk/q;->h(Lcom/in2wow/sdk/q;)Landroid/webkit/WebView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/webkit/WebView;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    .line 248
    iget-object v1, p0, Lcom/in2wow/sdk/q$b;->a:Lcom/in2wow/sdk/q;

    invoke-static {v1}, Lcom/in2wow/sdk/q;->h(Lcom/in2wow/sdk/q;)Landroid/webkit/WebView;

    move-result-object v1

    const/16 v2, 0x8

    invoke-virtual {v1, v2}, Landroid/webkit/WebView;->setVisibility(I)V

    .line 251
    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v2, -0x1

    invoke-direct {v1, v2, v2}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    .line 252
    invoke-virtual {p1, v1}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 253
    invoke-virtual {v0, p1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    .line 254
    iput-object p1, p0, Lcom/in2wow/sdk/q$b;->b:Landroid/view/View;

    .line 255
    iput-object p2, p0, Lcom/in2wow/sdk/q$b;->c:Landroid/webkit/WebChromeClient$CustomViewCallback;

    .line 256
    iget-object p1, p0, Lcom/in2wow/sdk/q$b;->a:Lcom/in2wow/sdk/q;

    iget-object p2, p0, Lcom/in2wow/sdk/q$b;->a:Lcom/in2wow/sdk/q;

    invoke-static {p2}, Lcom/in2wow/sdk/q;->h(Lcom/in2wow/sdk/q;)Landroid/webkit/WebView;

    move-result-object p2

    invoke-static {p1, p2}, Lcom/in2wow/sdk/q;->a(Lcom/in2wow/sdk/q;Landroid/webkit/WebView;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method
