parent
8860f792c4
commit
7419570f94
1 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue