CB-1217: Clicking back button does not dismiss navigator.notification.alert() dialog

This commit is contained in:
macdonst 2012-08-09 10:54:35 -04:00
parent b297fe6f59
commit 7352a309a0

View File

@ -193,7 +193,7 @@ public class Notification extends Plugin {
AlertDialog.Builder dlg = new AlertDialog.Builder(cordova.getActivity());
dlg.setMessage(message);
dlg.setTitle(title);
dlg.setCancelable(false);
dlg.setCancelable(true);
dlg.setPositiveButton(buttonLabel,
new AlertDialog.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
@ -229,7 +229,7 @@ public class Notification extends Plugin {
AlertDialog.Builder dlg = new AlertDialog.Builder(cordova.getActivity());
dlg.setMessage(message);
dlg.setTitle(title);
dlg.setCancelable(false);
dlg.setCancelable(true);
// First button
if (fButtons.length > 0) {