From 5dbd86155fa0eda09124f23db67a75a5ad99b542 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Thu, 10 Nov 2022 07:54:47 +0100 Subject: [PATCH] show help button only if Config.HELP is set --- src/main/java/eu/siacs/conversations/ui/RtpSessionActivity.java | 2 +- 1 file changed, 1 insertion(+), 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 302fbf81d..f9c7177a2 100644 --- a/src/main/java/eu/siacs/conversations/ui/RtpSessionActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/RtpSessionActivity.java @@ -164,7 +164,7 @@ public class RtpSessionActivity extends XmppActivity getMenuInflater().inflate(R.menu.activity_rtp_session, menu); final MenuItem help = menu.findItem(R.id.action_help); final MenuItem gotoChat = menu.findItem(R.id.action_goto_chat); - help.setVisible(isHelpButtonVisible()); + help.setVisible(Config.HELP != null && isHelpButtonVisible()); gotoChat.setVisible(isSwitchToConversationVisible()); return super.onCreateOptionsMenu(menu); }