UnityWebViewActivityProxy$1$8.smali

.class Lcom/garena/unity/webview/UnityWebViewActivityProxy$1$8;
.super Landroid/content/BroadcastReceiver;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/garena/unity/webview/UnityWebViewActivityProxy$1;
.end annotation

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


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


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

    iput-object p1, p0, Lcom/garena/unity/webview/UnityWebViewActivityProxy$1$8;->this$1:Lcom/garena/unity/webview/UnityWebViewActivityProxy$1;

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

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .registers 4

    const-class p1, Lcom/garena/unity/webview/WebViewStatus;

    invoke-virtual {p1}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;

    move-result-object p1

    invoke-virtual {p2, p1}, Landroid/content/Intent;->setExtrasClassLoader(Ljava/lang/ClassLoader;)V

    const-string p1, "recv by UnityPlayerActivity"

    # invokes: Lcom/garena/unity/webview/UnityWebViewActivityProxy;->LogIntent(Ljava/lang/String;Landroid/content/Intent;)V
    invoke-static {p1, p2}, Lcom/garena/unity/webview/UnityWebViewActivityProxy;->access$000(Ljava/lang/String;Landroid/content/Intent;)V

    const-string p1, "web_view_id"

    const/4 v0, -0x1

    invoke-virtual {p2, p1, v0}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result p1

    const-string v0, "web_view_status"

    invoke-virtual {p2, v0}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object p2

    check-cast p2, Lcom/garena/unity/webview/WebViewStatus;

    iget-object v0, p0, Lcom/garena/unity/webview/UnityWebViewActivityProxy$1$8;->this$1:Lcom/garena/unity/webview/UnityWebViewActivityProxy$1;

    iget-object v0, v0, Lcom/garena/unity/webview/UnityWebViewActivityProxy$1;->this$0:Lcom/garena/unity/webview/UnityWebViewActivityProxy;

    # invokes: Lcom/garena/unity/webview/UnityWebViewActivityProxy;->updateWebViewStatus(ILcom/garena/unity/webview/WebViewStatus;)V
    invoke-static {v0, p1, p2}, Lcom/garena/unity/webview/UnityWebViewActivityProxy;->access$600(Lcom/garena/unity/webview/UnityWebViewActivityProxy;ILcom/garena/unity/webview/WebViewStatus;)V

    return-void
.end method