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

Fix native FileDialog crash on Android #99329

Closed

Conversation

syntaxerror247
Copy link
Contributor

The issue occurred after merging PR #99266, causing a crash due to the use of processed_filters, which is not supported on Android. To resolve this, processed_filters has been replaced with filters in file_dialog_show, as this function is only called for Android. Other platforms use file_dialog_with_options_show.

This means that only platforms with the FEATURE_NATIVE_DIALOG_FILE_EXTRA will use processed_filters.

Also, updated FileDialog documentation for better clarity.

@syntaxerror247 syntaxerror247 requested review from a team as code owners November 16, 2024 18:31
@syntaxerror247 syntaxerror247 marked this pull request as draft November 16, 2024 18:52
@AThousandShips AThousandShips added this to the 4.4 milestone Nov 17, 2024
@syntaxerror247
Copy link
Contributor Author

Closing this in favor of #99350, as it provides a better fix.

@syntaxerror247 syntaxerror247 deleted the file-picker-crash branch November 18, 2024 12:30
@AThousandShips AThousandShips removed this from the 4.4 milestone Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Native FileDialog crashing on Android
2 participants