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
1 changed files with 5 additions and 1 deletions

View File

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