show help button only if Config.HELP is set

This commit is contained in:
Daniel Gultsch 2022-11-10 07:54:47 +01:00
parent dac2e17133
commit 5dbd86155f

View file

@ -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);
}