From 072edc5a62a90f4225d76faf648d4992b4c9a0f2 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Fri, 8 May 2020 21:15:54 +0200 Subject: [PATCH] hide microphone button in video-only calls. fixes #3700 --- .../java/eu/siacs/conversations/ui/RtpSessionActivity.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/ui/RtpSessionActivity.java b/src/main/java/eu/siacs/conversations/ui/RtpSessionActivity.java index 6b1d64bcf..405865734 100644 --- a/src/main/java/eu/siacs/conversations/ui/RtpSessionActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/RtpSessionActivity.java @@ -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);