@@ -168,7 +168,7 @@ public void run() {
168
168
AlertDialog .Builder dlg = createDialog (cordova ); // new AlertDialog.Builder(cordova.getActivity(), AlertDialog.THEME_DEVICE_DEFAULT_LIGHT);
169
169
dlg .setMessage (message );
170
170
dlg .setTitle (title );
171
- dlg .setCancelable (true );
171
+ dlg .setCancelable (false );
172
172
dlg .setPositiveButton (buttonLabel ,
173
173
new AlertDialog .OnClickListener () {
174
174
public void onClick (DialogInterface dialog , int which ) {
@@ -208,7 +208,7 @@ public void run() {
208
208
AlertDialog .Builder dlg = createDialog (cordova ); // new AlertDialog.Builder(cordova.getActivity(), AlertDialog.THEME_DEVICE_DEFAULT_LIGHT);
209
209
dlg .setMessage (message );
210
210
dlg .setTitle (title );
211
- dlg .setCancelable (true );
211
+ dlg .setCancelable (false );
212
212
213
213
// First button
214
214
if (buttonLabels .length () > 0 ) {
@@ -298,7 +298,7 @@ But for some android versions is not visible (for example 5.1.1).
298
298
AlertDialog .Builder dlg = createDialog (cordova ); // new AlertDialog.Builder(cordova.getActivity(), AlertDialog.THEME_DEVICE_DEFAULT_LIGHT);
299
299
dlg .setMessage (message );
300
300
dlg .setTitle (title );
301
- dlg .setCancelable (true );
301
+ dlg .setCancelable (false );
302
302
303
303
dlg .setView (promptInput );
304
304
@@ -401,7 +401,7 @@ public void run() {
401
401
notification .spinnerDialog = createProgressDialog (cordova ); // new ProgressDialog(cordova.getActivity(), AlertDialog.THEME_DEVICE_DEFAULT_LIGHT);
402
402
notification .spinnerDialog .setTitle (title );
403
403
notification .spinnerDialog .setMessage (message );
404
- notification .spinnerDialog .setCancelable (true );
404
+ notification .spinnerDialog .setCancelable (false );
405
405
notification .spinnerDialog .setIndeterminate (true );
406
406
notification .spinnerDialog .setOnCancelListener (
407
407
new DialogInterface .OnCancelListener () {
@@ -444,7 +444,7 @@ public void run() {
444
444
notification .progressDialog .setProgressStyle (ProgressDialog .STYLE_HORIZONTAL );
445
445
notification .progressDialog .setTitle (title );
446
446
notification .progressDialog .setMessage (message );
447
- notification .progressDialog .setCancelable (true );
447
+ notification .progressDialog .setCancelable (false );
448
448
notification .progressDialog .setMax (100 );
449
449
notification .progressDialog .setProgress (0 );
450
450
notification .progressDialog .setOnCancelListener (
0 commit comments