mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6953] [Issue]: The Android app never offers the camera when picking a picture #3897
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#3897
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?
Originally created by @SpicyMarinara on GitHub (Oct 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6953
Originally assigned to: @SpicyMarinara on GitHub.
Summary
In the Marinara Android app, picking a picture never offers the camera, whether in Noodle posts or chat attachments. You can only choose an existing file.
Found while fixing #6939. That fix makes Chrome on Android offer Camera for Noodle's picture buttons, but the app's WebView doesn't use Chrome's chooser, so it doesn't help there.
Expected behavior
When a page asks for an image, the app should offer Camera next to the file chooser, like Chrome does.
Actual behavior
MainActivity.javaonShowFileChooserbuilds its own file intent and never adds a camera option.Where to fix it
In
android/app/src/main/java/com/marinara/engine/MainActivity.java,onShowFileChooser:ACTION_IMAGE_CAPTUREintent to the chooser.FileProviderURI.onActivityResultwhen the camera was used.If the app ever declares the
CAMERApermission, it must also ask for it before usingACTION_IMAGE_CAPTURE.Steps to reproduce
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: