Repository navigation
Migrate preview overlays - #837
Conversation
|
This PR is for code review only. We don’t plan to test it separately, since #764 brings the preview overlays and the rest of the viewfinder controls together. |
sdsantos
left a comment
There was a problem hiding this comment.
I know you mentioned not to QA, but I did find some things while running the app to understand the code changes better:
- Weird zoom states transition glitch (notice how the .5x moves to the middle of the options before disappearing)
https://github.com/user-attachments/assets/a092b326-5379-47ac-b169-3e3dfc234641 - When I change the exposure, the flash options get disabled, but there's no (?) icon explaining why.
- Sometimes, when swiping up to see the quick settings, I see the focus ring too (might be unavoidable).
There was a problem hiding this comment.
Just checking if you've noticed the differences in the pitch lines between both.
There was a problem hiding this comment.
Yes, the horizon shift went from 24.dp to 40.dp.
|
|
||
| override fun attach(camera: Camera) { | ||
| detach() | ||
| val exposure = cameraXStateMapper.map(camera.cameraInfo.exposureState) |
There was a problem hiding this comment.
Is it fine to get this just once, instead of tracking it like with zoom?
There was a problem hiding this comment.
Yes. CameraX has no LiveData for exposure and every write goes through ExposureControl, which confirms it.
This PR migrates the preview grid, level indicator, self-timer countdown, focus indicator, and zoom and exposure controls to design system components, and #764 will migrate the remaining viewfinder controls and tidy up the layout.
Closes #763