Check display rotation for rotateAndCrop.
As display and sensor orientation are set to 0 and 90 respectively, rotateAndCrop needs to align with the current rotation of the device to result in a correct calculation: rotation = (sensorOrientationDegrees - deviceOrientationDegrees * sign + 360) % 360 Flag: com.android.window.flags.enable_camera_compat_check_device_rotation_bugfix Fixes: 395047103 Test: manual Change-Id: I490bec90f2b5130265d68fec2a01aa1e9f25d4c8
Loading
Please register or sign in to comment