Fix rotation not updated on phones using 'Legacy API'.

Fixes #10940
This commit is contained in:
Rainer Matischek 2021-06-06 20:31:41 +02:00 committed by Greyson Parrelli
parent 8860f792c4
commit 7419570f94

View file

@ -512,7 +512,12 @@ final class SignalCameraXModule {
return rotationDegrees;
}
@SuppressLint("UnsafeExperimentalUsageError")
public void invalidateView() {
if (mPreview != null) {
mPreview.setTargetRotation(getDisplaySurfaceRotation()); // Fixes issue #10940 (rotation not updated on phones using "Legacy API")
}
updateViewInfo();
}