Skip to content

fix: implement query in file ContentProviders for OpenableColumns - #1416

Open
Nari-Ab wants to merge 1 commit into
jonasoreland:masterfrom
Nari-Ab:fix-1043-content-provider-openable-columns
Open

Nari-Ab wants to merge 1 commit into
jonasoreland:masterfrom
Nari-Ab:fix-1043-content-provider-openable-columns

Conversation

@Nari-Ab

@Nari-Ab Nari-Ab commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Fixes #1043

When sharing an activity file (.tcx / .gpx) via Intent.ACTION_SEND, recipient applications (such as WhatsApp, Total Commander, email clients) query the content URI for OpenableColumns.DISPLAY_NAME and OpenableColumns.SIZE to determine the attachment name and size.

Previously, ActivityProvider.query() and WorkoutFileProvider.query() returned null, causing recipient apps to name the file "unknown" without an extension.

This PR implements query() returning a MatrixCursor with OpenableColumns.DISPLAY_NAME (derived from the URI last path segment) and OpenableColumns.SIZE.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sharing an activity (gpx/tcx) shares with no name & extension

1 participant