|
@@ -1247,7 +1247,8 @@ public class CallActivity extends AppCompatActivity {
|
|
|
.PeerConnectionEventType.SENSOR_NEAR)) {
|
|
|
boolean enableVideo = peerConnectionEvent.getPeerConnectionEventType().equals(PeerConnectionEvent
|
|
|
.PeerConnectionEventType.SENSOR_FAR) && videoOn;
|
|
|
- if (EffortlessPermissions.hasPermissions(this, PERMISSIONS_CAMERA) && inCall && videoOn) {
|
|
|
+ if (EffortlessPermissions.hasPermissions(this, PERMISSIONS_CAMERA) && inCall && videoOn
|
|
|
+ && !localVideoTrack.enabled()) {
|
|
|
runOnUiThread(() -> toggleMedia(enableVideo, true));
|
|
|
}
|
|
|
} else if (peerConnectionEvent.getPeerConnectionEventType().equals(PeerConnectionEvent
|