mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
Eliminte that 0 check on this; as this should only be a boolean value.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user