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 system file browser not being invoked #1325

Merged

Conversation

lfranke42
Copy link
Contributor

@lfranke42 lfranke42 commented Mar 28, 2024

Changes
This fix adds the invocation of the system file picker for onShowFileChooser in the WebChromeClient to enable the upload of local subtitle files.
It implements the recommendation of @Maxr1998 in issue #1082

Issues
Fixes #1082

@jellyfin-bot jellyfin-bot added this to the v2.7.0 milestone Mar 28, 2024
@Maxr1998
Copy link
Member

Thanks for working on this! I gave it a quick glance already and the changes look good, I'll try to review it more thoroughly in the next few days.

@nielsvanvelzen nielsvanvelzen requested a review from Maxr1998 April 9, 2024 11:17
@Maxr1998 Maxr1998 modified the milestones: v2.7.0, v2.6.1 Apr 23, 2024
@Maxr1998 Maxr1998 force-pushed the fix-subtitle-file-browser-invocation branch from fb7ce5c to 3411b62 Compare April 23, 2024 22:10
- Use interface instead of functional type to pass intent and callback
- Register activity launcher unconditionally as recommended in method documentation
- Use FileChooserParams#createIntent and FileChooserParams.parseResult helpers
@Maxr1998
Copy link
Member

I refactored it a bit to use more specific APIs to handle the FileChooserParams and renamed some functions, but otherwise this was good to go. Thanks again for getting this in!

@Maxr1998 Maxr1998 merged commit da17dc3 into jellyfin:master Apr 23, 2024
7 checks passed
@Maxr1998 Maxr1998 added the bug Something isn't working label Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Options Browse (Add/Upload Subtitle) do nothing
3 participants