ChromeClient$g.smali
.class final Lsg/bigo/spark/component/webview/ChromeClient$g;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lsg/bigo/spark/component/webview/ChromeClient;->onJsPrompt(Landroid/webkit/WebView;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/webkit/JsPromptResult;)Z
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = null
.end annotation
# instance fields
.field final synthetic a:Lsg/bigo/spark/component/webview/ChromeClient;
.field final synthetic b:Landroid/webkit/JsPromptResult;
.field final synthetic c:Landroid/widget/EditText;
# direct methods
.method constructor <init>(Lsg/bigo/spark/component/webview/ChromeClient;Landroid/webkit/JsPromptResult;Landroid/widget/EditText;)V
.registers 4
iput-object p1, p0, Lsg/bigo/spark/component/webview/ChromeClient$g;->a:Lsg/bigo/spark/component/webview/ChromeClient;
iput-object p2, p0, Lsg/bigo/spark/component/webview/ChromeClient$g;->b:Landroid/webkit/JsPromptResult;
iput-object p3, p0, Lsg/bigo/spark/component/webview/ChromeClient$g;->c:Landroid/widget/EditText;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final onClick(Landroid/content/DialogInterface;I)V
.registers 3
const/4 p1, -0x1
if-ne p2, p1, :cond_13
.line 95
iget-object p1, p0, Lsg/bigo/spark/component/webview/ChromeClient$g;->b:Landroid/webkit/JsPromptResult;
iget-object p2, p0, Lsg/bigo/spark/component/webview/ChromeClient$g;->c:Landroid/widget/EditText;
invoke-virtual {p2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;
move-result-object p2
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p2
invoke-virtual {p1, p2}, Landroid/webkit/JsPromptResult;->confirm(Ljava/lang/String;)V
goto :goto_18
.line 97
:cond_13
iget-object p1, p0, Lsg/bigo/spark/component/webview/ChromeClient$g;->b:Landroid/webkit/JsPromptResult;
invoke-virtual {p1}, Landroid/webkit/JsPromptResult;->cancel()V
.line 99
:goto_18
iget-object p1, p0, Lsg/bigo/spark/component/webview/ChromeClient$g;->a:Lsg/bigo/spark/component/webview/ChromeClient;
invoke-static {p1}, Lsg/bigo/spark/component/webview/ChromeClient;->a(Lsg/bigo/spark/component/webview/ChromeClient;)Ljava/util/ArrayList;
move-result-object p1
iget-object p2, p0, Lsg/bigo/spark/component/webview/ChromeClient$g;->b:Landroid/webkit/JsPromptResult;
invoke-virtual {p1, p2}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
return-void
.end method