summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGrace Kloba <klobag@google.com>2010-05-12 15:33:30 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-05-12 15:33:30 -0700
commitbfc63c7b83160fd3e771e5187d317348e72d6c27 (patch)
tree25bd9853af7387bd4c31699414571b8fa23fa3b9 /core
parent79090cb3da132d07cd3888ef9242df9872fb4aa1 (diff)
parent336d7dcb105a43ee4de51fd0f26f277c63662f02 (diff)
downloadframeworks_base-bfc63c7b83160fd3e771e5187d317348e72d6c27.zip
frameworks_base-bfc63c7b83160fd3e771e5187d317348e72d6c27.tar.gz
frameworks_base-bfc63c7b83160fd3e771e5187d317348e72d6c27.tar.bz2
am 336d7dcb: The default AlertDialog allows cancel. But the default JSConfim doesn\'t have a cancel listener. So when user cancel the dialog, we do not wake up the WebCoreThread. The same code is already done for JSPrompt dialog correctly.
Merge commit '336d7dcb105a43ee4de51fd0f26f277c63662f02' into froyo-plus-aosp * commit '336d7dcb105a43ee4de51fd0f26f277c63662f02': The default AlertDialog allows cancel. But the default
Diffstat (limited to 'core')
-rw-r--r--core/java/android/webkit/CallbackProxy.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/webkit/CallbackProxy.java b/core/java/android/webkit/CallbackProxy.java
index 8af2492..0e0e032 100644
--- a/core/java/android/webkit/CallbackProxy.java
+++ b/core/java/android/webkit/CallbackProxy.java
@@ -542,6 +542,13 @@ class CallbackProxy extends Handler {
int which) {
res.cancel();
}})
+ .setOnCancelListener(
+ new DialogInterface.OnCancelListener() {
+ public void onCancel(
+ DialogInterface dialog) {
+ res.cancel();
+ }
+ })
.show();
}
// Tell the JsResult that it is ready for client