mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-21 12:39:58 +01:00
Fix crash with camera switching
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
54d01d1f99
commit
46fb761499
@ -428,7 +428,9 @@ public class CallActivity extends AppCompatActivity {
|
||||
@OnClick(R.id.call_control_switch_camera)
|
||||
public void switchCamera() {
|
||||
CameraVideoCapturer cameraVideoCapturer = (CameraVideoCapturer) videoCapturer;
|
||||
cameraVideoCapturer.switchCamera(null);
|
||||
if (cameraVideoCapturer != null) {
|
||||
cameraVideoCapturer.switchCamera(null);
|
||||
}
|
||||
}
|
||||
|
||||
private void createCameraEnumerator() {
|
||||
|
Loading…
Reference in New Issue
Block a user