mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-17 01:35:03 +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)
|
@OnClick(R.id.call_control_switch_camera)
|
||||||
public void switchCamera() {
|
public void switchCamera() {
|
||||||
CameraVideoCapturer cameraVideoCapturer = (CameraVideoCapturer) videoCapturer;
|
CameraVideoCapturer cameraVideoCapturer = (CameraVideoCapturer) videoCapturer;
|
||||||
cameraVideoCapturer.switchCamera(null);
|
if (cameraVideoCapturer != null) {
|
||||||
|
cameraVideoCapturer.switchCamera(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void createCameraEnumerator() {
|
private void createCameraEnumerator() {
|
||||||
|
Loading…
Reference in New Issue
Block a user