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
Loading
Please register or sign in to comment