UnityWebViewProxy$2.smali

.class Lcom/garena/unity/webview/UnityWebViewProxy$2;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/garena/unity/webview/UnityWebViewProxy;->destroy()V
.end annotation

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


# instance fields
.field final synthetic this$0:Lcom/garena/unity/webview/UnityWebViewProxy;


# direct methods
.method constructor <init>(Lcom/garena/unity/webview/UnityWebViewProxy;)V
    .registers 2

    iput-object p1, p0, Lcom/garena/unity/webview/UnityWebViewProxy$2;->this$0:Lcom/garena/unity/webview/UnityWebViewProxy;

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

    return-void
.end method


# virtual methods
.method public run()V
    .registers 3

    iget-object v0, p0, Lcom/garena/unity/webview/UnityWebViewProxy$2;->this$0:Lcom/garena/unity/webview/UnityWebViewProxy;

    # getter for: Lcom/garena/unity/webview/UnityWebViewProxy;->_WebViews:Ljava/util/HashMap;
    invoke-static {v0}, Lcom/garena/unity/webview/UnityWebViewProxy;->access$200(Lcom/garena/unity/webview/UnityWebViewProxy;)Ljava/util/HashMap;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/HashMap;->entrySet()Ljava/util/Set;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_e
    :goto_e
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_28

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/Map$Entry;

    invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/webkit/WebView;

    if-eqz v1, :cond_e

    :try_start_22
    invoke-virtual {v1}, Landroid/webkit/WebView;->destroy()V
    :try_end_25
    .catchall {:try_start_22 .. :try_end_25} :catchall_26

    goto :goto_e

    :catchall_26
    nop

    goto :goto_e

    :cond_28
    iget-object v0, p0, Lcom/garena/unity/webview/UnityWebViewProxy$2;->this$0:Lcom/garena/unity/webview/UnityWebViewProxy;

    # getter for: Lcom/garena/unity/webview/UnityWebViewProxy;->_WebViews:Ljava/util/HashMap;
    invoke-static {v0}, Lcom/garena/unity/webview/UnityWebViewProxy;->access$200(Lcom/garena/unity/webview/UnityWebViewProxy;)Ljava/util/HashMap;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/HashMap;->clear()V

    iget-object v0, p0, Lcom/garena/unity/webview/UnityWebViewProxy$2;->this$0:Lcom/garena/unity/webview/UnityWebViewProxy;

    # getter for: Lcom/garena/unity/webview/UnityWebViewProxy;->_WebViewStatuses:Ljava/util/HashMap;
    invoke-static {v0}, Lcom/garena/unity/webview/UnityWebViewProxy;->access$300(Lcom/garena/unity/webview/UnityWebViewProxy;)Ljava/util/HashMap;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/HashMap;->clear()V

    iget-object v0, p0, Lcom/garena/unity/webview/UnityWebViewProxy$2;->this$0:Lcom/garena/unity/webview/UnityWebViewProxy;

    const/4 v1, 0x0

    # setter for: Lcom/garena/unity/webview/UnityWebViewProxy;->_FrameLayout:Landroid/widget/FrameLayout;
    invoke-static {v0, v1}, Lcom/garena/unity/webview/UnityWebViewProxy;->access$002(Lcom/garena/unity/webview/UnityWebViewProxy;Landroid/widget/FrameLayout;)Landroid/widget/FrameLayout;

    iget-object v0, p0, Lcom/garena/unity/webview/UnityWebViewProxy$2;->this$0:Lcom/garena/unity/webview/UnityWebViewProxy;

    # setter for: Lcom/garena/unity/webview/UnityWebViewProxy;->_UnityPlayerActivity:Landroid/app/Activity;
    invoke-static {v0, v1}, Lcom/garena/unity/webview/UnityWebViewProxy;->access$102(Lcom/garena/unity/webview/UnityWebViewProxy;Landroid/app/Activity;)Landroid/app/Activity;

    iget-object v0, p0, Lcom/garena/unity/webview/UnityWebViewProxy$2;->this$0:Lcom/garena/unity/webview/UnityWebViewProxy;

    # setter for: Lcom/garena/unity/webview/UnityWebViewProxy;->_UnityMessenger:Lcom/garena/unity/webview/IUnityMessenger;
    invoke-static {v0, v1}, Lcom/garena/unity/webview/UnityWebViewProxy;->access$402(Lcom/garena/unity/webview/UnityWebViewProxy;Lcom/garena/unity/webview/IUnityMessenger;)Lcom/garena/unity/webview/IUnityMessenger;

    return-void
.end method