Hi,
We are having an issue where the preview changes rotation when tilt the phone sideways/landscape. It is only an issue with preview, the capture comes out in the correct orientation and with the full aspect ratio, but it is hard for users to tell what they are going to capture.
This is specific to certain devices. I attached an image of the native camera and our app on the same phone to compare.
It might be similar to
huawei meteX2, preview on landscape has wrong rotation. [262114753] - Visible to Public - Issue Tracker (google.com), but I'm not sure. And I don't know what I need to change to get it working.
Info:
- Spectralink Versity 9540
- Android 8.1.0
- CameraX 1.1.0 and 1.2.0
- our app's layouts are screenOrientation = portrait
Our OrientationListener set the same values for preview.targetRotation on a working and not working device.
ImplementationMode.COMPATIBLE didn't seem to make a difference.
Appreciate any help,
Taylor