When user taps outside the dialog in Android, it cancels the dialog. This may not be the expected behaviour for some users, since the user has not tap any of the buttons. Resulting in confusion for some users.
This change allows the developer to set globally, whether dialog should be cancelable
Description
Changes are added specifically for Android platform.
Added a property - isCancelable, to Notification.java class that controls whether new dialogs are cancelable.
Default is true, so the change is backward compatible
Added a function - setCancelable(enable), to set the isCancelable property
Platforms affected
Android
Motivation and Context
When user taps outside the dialog in Android, it cancels the dialog. This may not be the expected behaviour for some users, since the user has not tap any of the buttons. Resulting in confusion for some users.
This change allows the developer to set globally, whether dialog should be cancelable
Description
Changes are added specifically for Android platform.
Added a property - isCancelable, to Notification.java class that controls whether new dialogs are cancelable. Default is true, so the change is backward compatible
Added a function - setCancelable(enable), to set the isCancelable property