Fix calling controll visibility bugs.

This commit is contained in:
Cody Henthorne
2023-12-15 11:41:47 -05:00
parent 2b318152fa
commit ee47c1ea10
2 changed files with 1 additions and 5 deletions

View File

@@ -172,10 +172,6 @@ public class CallParticipantView extends ConstraintLayout {
audioIndicator.setVisibility(View.VISIBLE);
audioIndicator.bind(participant.isMicrophoneEnabled(), participant.getAudioLevel());
if (selfPipMode != SelfPipMode.NOT_SELF_PIP) {
switchCameraIconFrame.setVisibility(participant.isVideoEnabled() ? View.VISIBLE : View.GONE);
}
}
if (participantChanged || !Objects.equals(contactPhoto, participant.getRecipient().getContactPhoto())) {

View File

@@ -224,7 +224,7 @@ class ControlsAndInfoController(
showOrHideControlsOnUpdate(previousState)
if (controlState.controlVisibilitiesChanged(previousState)) {
if (controlState != WebRtcControls.PIP && controlState.controlVisibilitiesChanged(previousState)) {
updateControlVisibilities()
}
}