Add support for rotate-and-crop to the opposite direction.
Current camera compat rotate and crop assumes that the device is rotated in a particular direction. However, different devices have different "dominant" landscape rotations, which can lead to upside-down images. Since display rotation and sensor orientation have to be 0 and 90 respectively in camera compat mode, rotate-and-crop direction depends on the current device rotation to produce an upright preview. Flag: com.android.window.flags.enable_camera_compat_check_device_rotation_bugfix Bug: 395047103 Test: manual Change-Id: I2cddda5b57e2f9b559e502436f4754f3539821ef
Loading
Please register or sign in to comment