Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit fa982f3d authored by Jayant Chowdhary's avatar Jayant Chowdhary
Browse files

camera: Let SurfaceView transform preview only when rotation override isn't rotation only



Both rotate and crop and SurfaceView shouldn't be rotating the preview
when rotation override is ROTATION_ONLY. This is since, the
ROTATION_ONLY enum value only makes the camera framework send
ROTATE_AND_CROP(90 / 270) to the HAL, however it doesn't change the
sensor orientation.
Since rotate and crop applies to all processed streams, we modify the
SurfaceView transform in this case.

Bug: 364275078

Flag: com.android.window.flags.enable_camera_compat_for_desktop_windowing

Test: Manual in desktop mode for apps using SurfaceView

Change-Id: I3699da778410d0d36cf19afa8ef19acd7a4137f7
Signed-off-by: default avatarJayant Chowdhary <jchowdhary@google.com>
parent c2d54b54
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment