hide microphone button in video-only calls. fixes #3700

This commit is contained in:
Daniel Gultsch 2020-05-08 21:15:54 +02:00
parent bd0234ba4d
commit 072edc5a62

View file

@ -580,7 +580,11 @@ public class RtpSessionActivity extends XmppActivity implements XmppConnectionSe
); );
this.binding.inCallActionFarRight.setVisibility(View.GONE); this.binding.inCallActionFarRight.setVisibility(View.GONE);
} }
if (media.contains(Media.AUDIO)) {
updateInCallButtonConfigurationMicrophone(requireRtpConnection().isMicrophoneEnabled()); updateInCallButtonConfigurationMicrophone(requireRtpConnection().isMicrophoneEnabled());
} else {
this.binding.inCallActionLeft.setVisibility(View.GONE);
}
} else { } else {
this.binding.inCallActionLeft.setVisibility(View.GONE); this.binding.inCallActionLeft.setVisibility(View.GONE);
this.binding.inCallActionRight.setVisibility(View.GONE); this.binding.inCallActionRight.setVisibility(View.GONE);