mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-09 13:59:48 +01:00
Check if videocapturer is null
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
c8ff05ed04
commit
8df1cdf964
@ -336,10 +336,12 @@ public class CallActivity extends AppCompatActivity {
|
|||||||
message = "videoOn";
|
message = "videoOn";
|
||||||
startVideoCapture();
|
startVideoCapture();
|
||||||
} else {
|
} else {
|
||||||
try {
|
if (videoCapturer != null) {
|
||||||
videoCapturer.stopCapture();
|
try {
|
||||||
} catch (InterruptedException e) {
|
videoCapturer.stopCapture();
|
||||||
Log.d(TAG, "Failed to stop capturing video while sensor is near the ear");
|
} catch (InterruptedException e) {
|
||||||
|
Log.d(TAG, "Failed to stop capturing video while sensor is near the ear");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user