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

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

Check display rotation for rotateAndCrop.

As display and sensor orientation are set to 0 and 90
respectively, rotateAndCrop needs to align with the
current rotation of the device to result in a correct
calculation:
rotation = (sensorOrientationDegrees - deviceOrientationDegrees * sign + 360) % 360

Flag: com.android.window.flags.enable_camera_compat_check_device_rotation_bugfix
Fixes: 395047103
Test: manual
Change-Id: I490bec90f2b5130265d68fec2a01aa1e9f25d4c8
parent 2e071263
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