mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6964] [MERGED] fix(android): offer the camera when a page asks for a picture #7407
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7407
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6964
Author: @SpicyMarinara
Created: 10/2/2026
Status: ✅ Merged
Merged: 10/2/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/android-camera📝 Commits (4)
1f831edfix(android): offer the camera when a page asks for a picture622bfd4fix(android): build the camera chooser inside the error guard2532c15Merge remote-tracking branch 'origin/staging' into fix/android-camera8b5c8e8fix(android): keep the camera photo's address if the app is closed📊 Changes
3 files changed (+116 additions, -4 deletions)
View changed files
📝
CHANGELOG.md(+2 -1)📝
android/app/src/main/java/com/marinara/engine/MainActivity.java(+84 -3)➕
scripts/regressions/android-file-chooser-camera.regression.ts(+30 -0)📄 Description
Linked issue
Closes #6953
Why this change
In the Marinara Android app, picking a picture never offered the camera, for Noodle posts or chat attachments. You could only choose an existing file. In Chrome on Android you get a Camera option (Noodle 1.4.0 made sure of that), but the app's WebView builds its own file chooser and left it out.
What changed
MainActivity.java, when the page accepts images (image/*,*/*or no filter), the file chooser gets a Camera choice next to the usual picker.FileProvider.android-file-chooser-camera.regression.ts, the same kind of check the other Android regressions use, plus a CHANGELOG entry.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
What I ran (not a replacement for the checklist):
./build-apk.sh debugon Gradle 9.8.0 (BUILD SUCCESSFUL).MainActivity:android-local-authandopen-issuespass.try, so an error can't leave the page's file callback hanging. The APK rebuilds fine.To check by hand on an Android phone (10 or newer) with the app:
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)CHANGELOG entry only.
UI evidence (if applicable)
Native Android chooser; no screenshots from a device.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.