This repository was archived by the owner on Jan 21, 2026. It is now read-only.
Fix GPX file picker on Android 13+ and transport selection bug#450
Open
betodealmeida wants to merge 1 commit intoIndiePass:masterfrom
Open
Fix GPX file picker on Android 13+ and transport selection bug#450betodealmeida wants to merge 1 commit intoIndiePass:masterfrom
betodealmeida wants to merge 1 commit intoIndiePass:masterfrom
Conversation
- Use ACTION_OPEN_DOCUMENT without MIME type restrictions for GPX files since they may have various MIME types (application/gpx+xml, application/octet-stream, text/xml, etc.) - Add CATEGORY_OPENABLE and permission flags for proper SAF handling - Validate file extension after selection to ensure .gpx files only - Fix transport spinner bug: was using 'read' instead of 'transport' 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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