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

Commit ae4aa9d7 authored by Mina Granic's avatar Mina Granic
Browse files

Add support for rotate-and-crop to the opposite direction.

Current camera compat rotate and crop assumes that the
device is rotated in a particular direction. However,
different devices have different "dominant" landscape
rotations, which can lead to upside-down images.

Since display rotation and sensor orientation have to be
0 and 90 respectively in camera compat mode, rotate-and-crop
direction depends on the current device rotation to
produce an upright preview.

Flag: com.android.window.flags.enable_camera_compat_check_device_rotation_bugfix
Bug: 395047103
Test: manual

Change-Id: I2cddda5b57e2f9b559e502436f4754f3539821ef
parent e4f1087d
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