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

Commit 0f436120 authored by Mina Granic's avatar Mina Granic
Browse files

Sandbox OrientationEventListener orientation when sandboxing Display rotation.

CompatibilityInfo.overrideDisplayRotation is set while in camera compat
 mode. Many apps use Display.getRotation() - which is changed in camera
 compat mode - or via OrientationEventListener.
OrientationEventListener is rarely used to calculate camera preview
 orientation, but it is sometimes used to calculate captured image
 rotation. Both ways should result in equivalent rotations,
for the camera image to be upright (not stretched or sideways).

Flag: com.android.window.flags.enable_camera_compat_for_desktop_windowing
Fixes: 389977891
Test: atest FrameworksCoreTests:android.view.OrientationEventListenerFrameworkTest
Change-Id: I6a693a9180dda9ada77166d81a31a5b7afd141f7
parent 8277e2b6
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