Eliminte that 0 check on this; as this should only be a boolean value.

This commit is contained in:
Nathanael Anderson
2015-11-12 16:56:10 -06:00
parent 73f179d3b6
commit bc7fd76498

View File

@ -13,7 +13,7 @@ function createAlertDialog(options?: dialogs.DialogOptions): android.app.AlertDi
var alert = new android.app.AlertDialog.Builder(appmodule.android.foregroundActivity);
alert.setTitle(options && types.isString(options.title) ? options.title : "");
alert.setMessage(options && types.isString(options.message) ? options.message : "");
if (options && (options.cancelable === false || options.cancelable === 0)) {
if (options && options.cancelable === false) {
alert.setCancelable(false);
}
return alert;