WebJsEvent$3.smali
.class Lio/dcloud/common/adapter/ui/webview/WebJsEvent$3;
.super Ljava/lang/Object;
# interfaces
.implements Landroid/content/DialogInterface$OnKeyListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lio/dcloud/common/adapter/ui/webview/WebJsEvent;->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 = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lio/dcloud/common/adapter/ui/webview/WebJsEvent;
.field final synthetic val$dlg:Landroid/app/AlertDialog;
.field final synthetic val$res:Landroid/webkit/JsPromptResult;
# direct methods
.method constructor <init>(Lio/dcloud/common/adapter/ui/webview/WebJsEvent;Landroid/app/AlertDialog;Landroid/webkit/JsPromptResult;)V
.registers 4
.line 1
iput-object p1, p0, Lio/dcloud/common/adapter/ui/webview/WebJsEvent$3;->this$0:Lio/dcloud/common/adapter/ui/webview/WebJsEvent;
iput-object p2, p0, Lio/dcloud/common/adapter/ui/webview/WebJsEvent$3;->val$dlg:Landroid/app/AlertDialog;
iput-object p3, p0, Lio/dcloud/common/adapter/ui/webview/WebJsEvent$3;->val$res:Landroid/webkit/JsPromptResult;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onKey(Landroid/content/DialogInterface;ILandroid/view/KeyEvent;)Z
.registers 4
.line 1
sget-boolean p1, Lio/dcloud/common/adapter/util/AndroidResources;->sIMEAlive:Z
if-nez p1, :cond_19
invoke-virtual {p3}, Landroid/view/KeyEvent;->getAction()I
move-result p1
if-nez p1, :cond_19
const/4 p1, 0x4
if-ne p2, p1, :cond_19
.line 3
iget-object p1, p0, Lio/dcloud/common/adapter/ui/webview/WebJsEvent$3;->val$dlg:Landroid/app/AlertDialog;
invoke-virtual {p1}, Landroid/app/AlertDialog;->dismiss()V
.line 4
iget-object p1, p0, Lio/dcloud/common/adapter/ui/webview/WebJsEvent$3;->val$res:Landroid/webkit/JsPromptResult;
invoke-virtual {p1}, Landroid/webkit/JsPromptResult;->cancel()V
const/4 p1, 0x1
return p1
:cond_19
const/4 p1, 0x0
return p1
.end method