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

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

[CameraCompat] Use device sensor rotation when app is on external display.

Different natural orienations and display rotations can cause compatibility issues. This change uses `OrientationEventListener` (rotation sensor) to keep the camera preview upright.

This change only affects apps with existing camera compat treatments (fixed orientation).

Flag: com.android.window.flags.enable_camera_compat_external_display_rotation_bugfix
Test: atest WmTests:CameraCompatFreeformPolicyTests
Test: atest WmTests:AppCompatCameraInfoProviderTests
Fixes: 276432441
Change-Id: Ifd9bfa794b7b0b830c6f4c907ef4fe60834657e0
parent 198e7c40
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