Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(android): Added ability to setCancelable #134

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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