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

Fixes #10940
fork-5.53.8
Rainer Matischek 2021-06-06 20:31:41 +02:00 zatwierdzone przez Greyson Parrelli
rodzic 8860f792c4
commit 7419570f94
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -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();
}