Fix GPX file picker on Android 13+ and transport selection bug #450
No reviewers
Labels
No labels
Code
Contacts
Design
F-Droid
IndieWeb
Location
Mastodon
Media
Pixelfed
Pleroma
Posting
Question
Reader
Tracker
Translation
Usability
bug
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
inhji/indiepass-android!450
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "betodealmeida/fix-gpx-file-picker-android13"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
ACTION_OPEN_DOCUMENTwithout restrictive MIME type filters.gpxfiles are acceptedProblem
On Android 13+, GPX files were visible in the file picker but could not be selected. This was because:
Intent.createChooser()which interferes with the Storage Access Frameworkapplication/gpx+xml,application/octet-stream,text/xml, etc.) that didn't match the filterAdditionally, selecting a transport mode (Boat, Walk, etc.) caused an error due to a typo using
read.getSelectedItemPosition()instead oftransport.getSelectedItemPosition().Changes
ACTION_OPEN_DOCUMENTwithCATEGORY_OPENABLEand proper permission flagsisGpxFile()method to validate file extension after selectiontrip_invalid_file_typestring resource for user-friendly error messageTest plan
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.