summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeon Scroggins <>2009-04-02 10:47:53 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-04-02 10:47:53 -0700
commit238ddbb8a2961e6919d802694ef9ce7743cff61c (patch)
treec8ac31c5a74f86873523cabe9b62a4cc22664b7f
parenteb3e3e368a5093768b44b415a85a3d0bcce92583 (diff)
downloadframeworks_base-238ddbb8a2961e6919d802694ef9ce7743cff61c.zip
frameworks_base-238ddbb8a2961e6919d802694ef9ce7743cff61c.tar.gz
frameworks_base-238ddbb8a2961e6919d802694ef9ce7743cff61c.tar.bz2
AI 144235: Fix for 1752906: clicking "cancel" on a multiple <select> element disables future select elements from working. Add a listener for cancel, which will clear out the old popup, and allow a new one to be brought up in the future.
BUG=1752906 Automated import of CL 144235
-rw-r--r--core/java/android/webkit/WebView.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java
index 2bac925..f6ad793 100644
--- a/core/java/android/webkit/WebView.java
+++ b/core/java/android/webkit/WebView.java
@@ -4890,7 +4890,12 @@ public class WebView extends AbsoluteLayout
adapter.getCount(), 0,
listView.getCheckedItemPositions());
}});
- b.setNegativeButton(android.R.string.cancel, null);
+ b.setNegativeButton(android.R.string.cancel,
+ new DialogInterface.OnClickListener() {
+ public void onClick(DialogInterface dialog, int which) {
+ mWebViewCore.sendMessage(
+ EventHub.SINGLE_LISTBOX_CHOICE, -2, 0);
+ }});
}
final AlertDialog dialog = b.create();
listView.setAdapter(adapter);