DCWXWebView$2$1.smali

.class Lio/dcloud/feature/weex/adapter/webview/DCWXWebView$2$1;
.super Ljava/lang/Object;
.source "DCWXWebView.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lio/dcloud/feature/weex/adapter/webview/DCWXWebView$2;->onReceivedSslError(Landroid/webkit/WebView;Landroid/webkit/SslErrorHandler;Landroid/net/http/SslError;)V
.end annotation

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


# instance fields
.field final synthetic this$1:Lio/dcloud/feature/weex/adapter/webview/DCWXWebView$2;

.field final synthetic val$ad:Landroid/app/AlertDialog;

.field final synthetic val$error:Landroid/net/http/SslError;

.field final synthetic val$handler:Landroid/webkit/SslErrorHandler;


# direct methods
.method constructor <init>(Lio/dcloud/feature/weex/adapter/webview/DCWXWebView$2;Landroid/app/AlertDialog;Landroid/net/http/SslError;Landroid/webkit/SslErrorHandler;)V
    .registers 5
    .annotation system Ldalvik/annotation/MethodParameters;
        accessFlags = {
            0x8010,
            0x1010,
            0x1010,
            0x1010
        }
        names = {
            "this$1",
            "val$ad",
            "val$error",
            "val$handler"
        }
    .end annotation

    .line 386
    iput-object p1, p0, Lio/dcloud/feature/weex/adapter/webview/DCWXWebView$2$1;->this$1:Lio/dcloud/feature/weex/adapter/webview/DCWXWebView$2;

    iput-object p2, p0, Lio/dcloud/feature/weex/adapter/webview/DCWXWebView$2$1;->val$ad:Landroid/app/AlertDialog;

    iput-object p3, p0, Lio/dcloud/feature/weex/adapter/webview/DCWXWebView$2$1;->val$error:Landroid/net/http/SslError;

    iput-object p4, p0, Lio/dcloud/feature/weex/adapter/webview/DCWXWebView$2$1;->val$handler:Landroid/webkit/SslErrorHandler;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .registers 3
    .annotation system Ldalvik/annotation/MethodParameters;
        accessFlags = {
            0x0,
            0x0
        }
        names = {
            "dialog",
            "which"
        }
    .end annotation

    const/4 p1, -0x2

    if-ne p2, p1, :cond_e

    .line 390
    iget-object p1, p0, Lio/dcloud/feature/weex/adapter/webview/DCWXWebView$2$1;->val$ad:Landroid/app/AlertDialog;

    invoke-virtual {p1}, Landroid/app/AlertDialog;->cancel()V

    .line 391
    iget-object p1, p0, Lio/dcloud/feature/weex/adapter/webview/DCWXWebView$2$1;->val$ad:Landroid/app/AlertDialog;

    invoke-virtual {p1}, Landroid/app/AlertDialog;->dismiss()V

    goto :goto_29

    :cond_e
    const/4 p1, -0x3

    if-ne p2, p1, :cond_1b

    .line 393
    iget-object p1, p0, Lio/dcloud/feature/weex/adapter/webview/DCWXWebView$2$1;->val$error:Landroid/net/http/SslError;

    invoke-virtual {p1}, Landroid/net/http/SslError;->getCertificate()Landroid/net/http/SslCertificate;

    move-result-object p1

    invoke-virtual {p1}, Landroid/net/http/SslCertificate;->getIssuedBy()Landroid/net/http/SslCertificate$DName;

    goto :goto_29

    :cond_1b
    const/4 p1, -0x1

    if-ne p2, p1, :cond_29

    .line 395
    iget-object p1, p0, Lio/dcloud/feature/weex/adapter/webview/DCWXWebView$2$1;->val$handler:Landroid/webkit/SslErrorHandler;

    const/4 p2, 0x1

    invoke-static {p1, p2}, Lio/dcloud/common/adapter/ui/webview/WebViewFactory;->setSslHandlerState(Ljava/lang/Object;I)V

    .line 396
    iget-object p1, p0, Lio/dcloud/feature/weex/adapter/webview/DCWXWebView$2$1;->val$ad:Landroid/app/AlertDialog;

    invoke-virtual {p1}, Landroid/app/AlertDialog;->dismiss()V

    :cond_29
    :goto_29
    return-void
.end method