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

BadTokenException and WindowLeaked bug fix #2073

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sooraj-r-pai
Copy link

@sooraj-r-pai sooraj-r-pai commented May 3, 2024

This code has fix for
#2014 [Bug]: android.view.WindowManager$BadTokenException - Unable to add window
and
android.view.WindowLeaked:


This change is Reviewable

Copy link
Member

@jkasten2 jkasten2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sooraj-r-pai Thanks for submitting this PR. This PR however does have a side effect of the dialog never showing in these conditions. Ideally we wait until the next Activity is available before show this dialog. Something similar to the code we have in RequestPermissionService.startPrompt() could be done to do this.

The the above is a larger undertaking, so logging as an error would be acceptable, so it is known the dialog was skipped. Use the OneSingal's internal Logging.error method if we go down this path.

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.

None yet

2 participants