Skip to content

Fix camera Preview with orientation changes - #465

Merged
jperedadnr merged 2 commits into
masterfrom
464-camerarotation
Sep 29, 2026
Merged

jperedadnr merged 2 commits into
masterfrom
464-camerarotation

Conversation

@jperedadnr

@jperedadnr jperedadnr commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #464

With this PR:

  • The Preview is unspecified, PreviewView applies the display rotation itself on every redraw, so the preview and the window layout update in the same frame.
  • ImageCapture target rotation is defined by the sensor orientation, so the photo matches how the device is held at that moment.
  • The activity orientation is locked while the camera overlay is visible and restored on close, and the button bar stays in the orientation the camera was opened in.

Also, Android Platform is now 36.

@jperedadnr
jperedadnr merged commit bab85ae into master Sep 29, 2026
1 check passed
@jperedadnr
jperedadnr deleted the 464-camerarotation branch September 29, 2026 11:28
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.

[Android] Camera Screen does not react to orientation changes

1 participant