I am assuming setting a value of 'false' to the parameter 'cancellable' should give the desired result of the dialog being non-dismissable. But the dialog still gets dismissed by tapping elsewhere on the screen or the device back button. Please guide what can be done to achieve the desired result.
Is there any code involved?
provide a code example to recreate the problem
(EVEN BETTER) provide a .zip with an application or refer to a repository with an application where the problem is reproducible.
Make sure to check the demo app(s) for sample usage
Make sure to check the existing issues in this repository
If the demo apps cannot help and there is no issue for your problem, tell us about it
Please, ensure your title is less than 63 characters long and starts with a capital letter.
Which platform(s) does your issue occur on?
Android 8.0 - OnePlus3 (Oxygen OS 5.0.2)
Please, provide the following version numbers that your issue occurs with:
tns --version
to fetch it)node_modules/tns-core-modules/package.json
file in your project)"tns-android"
and"tns-ios"
properties in thepackage.json
file of your project)package.json
file of your project and paste your dependencies and devDependencies here)Please, tell us how to recreate the issue in as much detail as possible.
Describe the steps to reproduce it.
Open the following file in your code folder,
<code-folder-path>\node_modules\nativescript-cfalert-dialog\cfalert-dialog.android.js
There is a statement at line no.84 to set whether dialog should be cancelable or not =>
builder.setCancelable(options.cancellable);
Reference Url -> https://developer.android.com/reference/android/app/AlertDialog.Builder.html#setCancelable(boolean)
I am assuming setting a value of 'false' to the parameter 'cancellable' should give the desired result of the dialog being non-dismissable. But the dialog still gets dismissed by tapping elsewhere on the screen or the device back button. Please guide what can be done to achieve the desired result.
Is there any code involved?