Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 238ddbb8 authored by Leon Scroggins's avatar Leon Scroggins Committed by The Android Open Source Project
Browse files

AI 144235: Fix for 1752906: clicking "cancel" on a multiple <select> element...

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
parent eb3e3e36
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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);