mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-05-03 23:15:44 +01:00
Add null check to orientation unboxing.
This commit is contained in:
committed by
jeffrey-signal
parent
de584ccb7d
commit
0319adbce4
@@ -108,10 +108,10 @@ public class Camera implements CameraControl, CameraVideoCapturer.CameraSwitchHa
|
||||
|
||||
@Override
|
||||
public void setOrientation(@Nullable Integer orientation) {
|
||||
this.orientation = orientation;
|
||||
this.orientation = orientation != null ? orientation : 0;
|
||||
|
||||
if (isInitialized && capturer != null) {
|
||||
capturer.setOrientation(orientation);
|
||||
capturer.setOrientation(this.orientation);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user