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