mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 09:49:30 +01:00
Prevent incorrect state changes during vanity camera switchover.
This commit is contained in:
@@ -62,6 +62,7 @@ public final class WebRtcVideoUtil {
|
||||
|
||||
ThreadUtil.runOnMainSync(() -> {
|
||||
Camera camera = currentState.getVideoState().requireCamera();
|
||||
camera.setCameraEventListener(null);
|
||||
camera.setEnabled(false);
|
||||
camera.dispose();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user