Skip to content

0.4.1 - #5

Merged
munzzyy merged 2 commits into
mainfrom
fix-webview-file-chooser
Sep 11, 2026
Merged

munzzyy merged 2 commits into
mainfrom
fix-webview-file-chooser

Conversation

@munzzyy

@munzzyy munzzyy commented Sep 11, 2026

Copy link
Copy Markdown
Owner

The Choose File and Attach a file buttons opened no picker at all on Android 13, so attaching to a note and restoring a backup were both dead ends. The WebView had no file-chooser handler, so every file input was inert.

Adds a WebChromeClient with onShowFileChooser plus an activity-result launcher that returns the picked files to the WebView, honoring the input's accept filter and handling a cancelled pick.

Tested on an Android 13 emulator: the picker opens and both attach and restore complete. Bumps to 0.4.1.

<input type="file"> did nothing on tap: WebView needs a WebChromeClient
that overrides onShowFileChooser and launches the system picker itself,
and this app never set one. Added it alongside the existing capture
launcher, using the same pending-callback pattern.
@munzzyy
munzzyy merged commit 33c5f0f into main Sep 11, 2026
3 checks passed
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