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
This commit is contained in:
Leon Scroggins
2009-04-02 10:47:53 -07:00
committed by The Android Open Source Project
parent eb3e3e368a
commit 238ddbb8a2

View File

@@ -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);