show help button only if Config.HELP is set
This commit is contained in:
parent
dac2e17133
commit
5dbd86155f
|
@ -164,7 +164,7 @@ public class RtpSessionActivity extends XmppActivity
|
||||||
getMenuInflater().inflate(R.menu.activity_rtp_session, menu);
|
getMenuInflater().inflate(R.menu.activity_rtp_session, menu);
|
||||||
final MenuItem help = menu.findItem(R.id.action_help);
|
final MenuItem help = menu.findItem(R.id.action_help);
|
||||||
final MenuItem gotoChat = menu.findItem(R.id.action_goto_chat);
|
final MenuItem gotoChat = menu.findItem(R.id.action_goto_chat);
|
||||||
help.setVisible(isHelpButtonVisible());
|
help.setVisible(Config.HELP != null && isHelpButtonVisible());
|
||||||
gotoChat.setVisible(isSwitchToConversationVisible());
|
gotoChat.setVisible(isSwitchToConversationVisible());
|
||||||
return super.onCreateOptionsMenu(menu);
|
return super.onCreateOptionsMenu(menu);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue