am bfc63c7b: 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 'bfc63c7b83160fd3e771e5187d317348e72d6c27' into kraken * commit 'bfc63c7b83160fd3e771e5187d317348e72d6c27': The default AlertDialog allows cancel. But the default
This commit is contained in:
@@ -542,6 +542,13 @@ class CallbackProxy extends Handler {
|
|||||||
int which) {
|
int which) {
|
||||||
res.cancel();
|
res.cancel();
|
||||||
}})
|
}})
|
||||||
|
.setOnCancelListener(
|
||||||
|
new DialogInterface.OnCancelListener() {
|
||||||
|
public void onCancel(
|
||||||
|
DialogInterface dialog) {
|
||||||
|
res.cancel();
|
||||||
|
}
|
||||||
|
})
|
||||||
.show();
|
.show();
|
||||||
}
|
}
|
||||||
// Tell the JsResult that it is ready for client
|
// Tell the JsResult that it is ready for client
|
||||||
|
|||||||
Reference in New Issue
Block a user