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

File chooser delegate doesn't honor an OS contract, causing a crash in rare situations #338

Open
jhutarek opened this issue Aug 6, 2024 · 0 comments

Comments

@jhutarek
Copy link
Contributor

jhutarek commented Aug 6, 2024

TurboFileChooserDelegate returns false from startIntent when destination is null or when the activity launch fails. However infrequent this might be, the problem is that Android has a contract on this return value when using filePathCallback - when the callback is used, the system expects true to be returned, which apparently means "I will handle it myself". When Turbo returns false, the system throws java.lang.IllegalStateException: Duplicate showFileChooser result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant