Skip to content

Open downloaded files and their folder from Downloads - #7

Merged
tamayaren merged 1 commit into
mainfrom
ccr-dd7387c0-19gpci
Nov 5, 2026
Merged

tamayaren merged 1 commit into
mainfrom
ccr-dd7387c0-19gpci

Conversation

@tamayaren

Copy link
Copy Markdown
Collaborator

Adds View and View folder to the Downloads page.

  • Tapping a finished download (or View in its check-mark menu) opens the file with ACTION_VIEW on its SAF document URI (DownloadTask.savedUri), granting read access to the chosen app.
  • View folder (in the menu and as a folder icon in the app bar) opens the SAF folder as a directory document in Files, falling back to the folder picker started there (EXTRA_INITIAL_URI, Android 8+). A snackbar says when nothing can open it.
  • New viewFile / viewFolder calls on the pawress/intents channel, accepting only content:// URIs.
  • DownloadTarget.open now returns the saved URI; DownloadTask.mime is reused for viewing. Test and AGENT.md updated.

flutter analyze is clean and all tests pass. The APK couldn't be built in the authoring environment (Gradle had no network), so CI's debug build is the first Kotlin compile check; still needs on-device verification.


Generated by Claude Code

A finished download opens in another app on tap (View), and its menu and
the app bar offer View folder, which shows the SAF folder in the phone's
file browser.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LtGkw1VcBTGxqAQx4KMEcK
@tamayaren
tamayaren merged commit e7dc975 into main Nov 5, 2026
2 checks passed
@tamayaren
tamayaren deleted the ccr-dd7387c0-19gpci branch November 5, 2026 15:16
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.

2 participants