Fix controls are removed when remote video is disabled.

This commit is contained in:
Alex Hart 2020-05-15 13:05:00 -03:00
parent 1c814141a2
commit 76740adc3f

View File

@ -194,10 +194,10 @@ public class WebRtcCallView extends FrameLayout {
remoteRenderContainer.setVisibility(View.GONE); remoteRenderContainer.setVisibility(View.GONE);
} }
if (shouldFadeControls && !wasRemoteVideoEnabled) { if (isRemoteVideoEnabled && !wasRemoteVideoEnabled) {
fadeInControls();
} else if (!isRemoteVideoEnabled && wasRemoteVideoEnabled) {
fadeInControls(); fadeInControls();
} else if (!shouldFadeControls && wasRemoteVideoEnabled) {
fadeOutControls();
cancelFadeOut(); cancelFadeOut();
} }
} }