Skip to content

feat: native file downloads via DownloadManager - #4

Merged
william0wang merged 1 commit into
mainfrom
feat/file-download
Aug 23, 2026
Merged

feat: native file downloads via DownloadManager#4
william0wang merged 1 commit into
mainfrom
feat/file-download

Conversation

@william0wang

Copy link
Copy Markdown
Owner

Summary

  • MainActivity: wry registers no DownloadListener, so WebView downloads were
    silently dropped. Attach one that routes Content-Disposition: attachment
    responses into the system DownloadManager (visible notification, public
    Downloads dir). Filename resolution prefers the RFC 5987 filename* form
    (Android's URLUtil only reads the ASCII fallback) so non-ASCII names survive.
  • FileViewer: Download button appends &dl=1 to the byte URL — needs bridge
    0.11.8+; older bridges ignore the flag and render inline (back returns).
  • i18n: en + zh-CN.

Pairs with william0wang/zcode-acp#74.

@william0wang
william0wang merged commit 1961177 into main Aug 23, 2026
@william0wang
william0wang deleted the feat/file-download branch August 23, 2026 10:04
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.

1 participant