DappWebView.smali

.class public final Lcom/cmcm/safewallet/ui/dapp/DappWebView;
.super Landroid/webkit/WebView;
.source "DappWebView.kt"


# instance fields
.field ahr:Lcom/cmcm/safewallet/ui/dapp/c;
    .annotation build Lorg/jetbrains/annotations/Nullable;
    .end annotation
.end field

.field ahs:Lkotlin/jvm/a/a;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lkotlin/jvm/a/a",
            "<",
            "Lkotlin/e;",
            ">;"
        }
    .end annotation

    .annotation build Lorg/jetbrains/annotations/Nullable;
    .end annotation
.end field


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .registers 4
    .param p1    # Landroid/content/Context;
        .annotation build Lorg/jetbrains/annotations/NotNull;
        .end annotation
    .end param

    .prologue
    const-string v0, "context"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    .line 15
    new-instance v0, Landroid/view/ContextThemeWrapper;

    const v1, 0x7f0a0149

    invoke-direct {v0, p1, v1}, Landroid/view/ContextThemeWrapper;-><init>(Landroid/content/Context;I)V

    check-cast v0, Landroid/content/Context;

    invoke-direct {p0, v0}, Landroid/webkit/WebView;-><init>(Landroid/content/Context;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .registers 5
    .param p1    # Landroid/content/Context;
        .annotation build Lorg/jetbrains/annotations/NotNull;
        .end annotation
    .end param
    .param p2    # Landroid/util/AttributeSet;
        .annotation build Lorg/jetbrains/annotations/Nullable;
        .end annotation
    .end param

    .prologue
    const-string v0, "context"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    .line 16
    new-instance v0, Landroid/view/ContextThemeWrapper;

    const v1, 0x7f0a0149

    invoke-direct {v0, p1, v1}, Landroid/view/ContextThemeWrapper;-><init>(Landroid/content/Context;I)V

    check-cast v0, Landroid/content/Context;

    invoke-direct {p0, v0, p2}, Landroid/webkit/WebView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .registers 6
    .param p1    # Landroid/content/Context;
        .annotation build Lorg/jetbrains/annotations/NotNull;
        .end annotation
    .end param
    .param p2    # Landroid/util/AttributeSet;
        .annotation build Lorg/jetbrains/annotations/Nullable;
        .end annotation
    .end param

    .prologue
    const-string v0, "context"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    .line 17
    new-instance v0, Landroid/view/ContextThemeWrapper;

    const v1, 0x7f0a0149

    invoke-direct {v0, p1, v1}, Landroid/view/ContextThemeWrapper;-><init>(Landroid/content/Context;I)V

    check-cast v0, Landroid/content/Context;

    invoke-direct {p0, v0, p2, p3}, Landroid/webkit/WebView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    return-void
.end method


# virtual methods
.method public final destroy()V
    .registers 5

    .prologue
    const/4 v3, 0x0

    .line 27
    iget-object v0, p0, Lcom/cmcm/safewallet/ui/dapp/DappWebView;->ahr:Lcom/cmcm/safewallet/ui/dapp/c;

    if-eqz v0, :cond_13

    .line 1337
    invoke-virtual {v0}, Lcom/cmcm/safewallet/ui/dapp/c;->nh()Lio/reactivex/disposables/a;

    move-result-object v1

    .line 2170
    iget-boolean v0, v1, Lio/reactivex/disposables/a;->disposed:Z

    if-nez v0, :cond_13

    .line 2174
    monitor-enter v1

    .line 2175
    :try_start_e
    iget-boolean v0, v1, Lio/reactivex/disposables/a;->disposed:Z

    if-eqz v0, :cond_19

    .line 2176
    monitor-exit v1
    :try_end_13
    .catchall {:try_start_e .. :try_end_13} :catchall_23

    .line 28
    :cond_13
    :goto_13
    iput-object v3, p0, Lcom/cmcm/safewallet/ui/dapp/DappWebView;->ahr:Lcom/cmcm/safewallet/ui/dapp/c;

    .line 29
    invoke-super {p0}, Landroid/webkit/WebView;->destroy()V

    .line 30
    return-void

    .line 2179
    :cond_19
    :try_start_19
    iget-object v0, v1, Lio/reactivex/disposables/a;->bOq:Lio/reactivex/internal/util/i;

    .line 2180
    const/4 v2, 0x0

    iput-object v2, v1, Lio/reactivex/disposables/a;->bOq:Lio/reactivex/internal/util/i;

    .line 2181
    monitor-exit v1
    :try_end_1f
    .catchall {:try_start_19 .. :try_end_1f} :catchall_23

    .line 2183
    invoke-static {v0}, Lio/reactivex/disposables/a;->a(Lio/reactivex/internal/util/i;)V

    goto :goto_13

    .line 2181
    :catchall_23
    move-exception v0

    :try_start_24
    monitor-exit v1
    :try_end_25
    .catchall {:try_start_24 .. :try_end_25} :catchall_23

    throw v0
.end method

.method public final reload()V
    .registers 2

    .prologue
    .line 24
    iget-object v0, p0, Lcom/cmcm/safewallet/ui/dapp/DappWebView;->ahs:Lkotlin/jvm/a/a;

    if-eqz v0, :cond_c

    invoke-interface {v0}, Lkotlin/jvm/a/a;->invoke()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lkotlin/e;

    if-nez v0, :cond_11

    :cond_c
    invoke-super {p0}, Landroid/webkit/WebView;->reload()V

    sget-object v0, Lkotlin/e;->bUd:Lkotlin/e;

    :cond_11
    return-void
.end method

.method public final setWebViewClient(Landroid/webkit/WebViewClient;)V
    .registers 3
    .param p1    # Landroid/webkit/WebViewClient;
        .annotation build Lorg/jetbrains/annotations/Nullable;
        .end annotation
    .end param

    .prologue
    .line 20
    invoke-super {p0, p1}, Landroid/webkit/WebView;->setWebViewClient(Landroid/webkit/WebViewClient;)V

    .line 21
    instance-of v0, p1, Lcom/cmcm/safewallet/ui/dapp/c;

    if-nez v0, :cond_d

    const/4 v0, 0x0

    :goto_8
    check-cast v0, Lcom/cmcm/safewallet/ui/dapp/c;

    iput-object v0, p0, Lcom/cmcm/safewallet/ui/dapp/DappWebView;->ahr:Lcom/cmcm/safewallet/ui/dapp/c;

    .line 22
    return-void

    :cond_d
    move-object v0, p1

    goto :goto_8
.end method