Repository navigation
Conversation
"Take photo" under the attachments of the entry editor starts the camera app; the shot goes to a non-exported provider in the cache. A new screen crops it by a frame, turns it by quarters and stores it at one of five sizes, each showing the bytes it takes for this crop; the choice is kept. The full-size shot is deleted, nothing leaves the app.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Description
A "Take photo" button under the attachments of the entry editor, next to "Add file attachment". Useful for keeping a photo of a card, a document or a device label right in the database.
ACTION_IMAGE_CAPTURE) writes the shot into a single file of the cache through a new non-exported provider (PhotoCaptureProvider,grantUriPermissions). No CAMERA permission is needed; if a merged manifest adds one, it is requested at runtime.PhotoEditActivity, aLockCloseActivity) shows the shot upright (EXIF) with a crop frame (drag the corners or sides, or the inside to move it), rotation by 90°, reset, and five sizes (320 to 2048 px on the long side, JPEG quality 40 to 85). Each size shows how many bytes it will take in the database for the current crop, measured off the main thread. The chosen size is remembered.photo_<date>_<time>.jpg. The full-size shot is deleted right away, so nothing leaves the app (external editors save copies to the gallery).Strings are added in English and Russian.
🔗 Related Issue
None found.
🛠️ Type of Change
✅ Checklist
📸 Screenshots/Videos