Skip to content

Conversation

ebhsgit
Copy link

@ebhsgit ebhsgit commented Feb 10, 2020

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

* Set local final variable for isCancelable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant