Skip to content

Commit

Permalink
fix: Hide the post option if it's disabled in institute settings (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
PruthiviRaj27 authored Nov 6, 2023
1 parent 066da78 commit 6f3ed39
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ private void showRateUsButtonBasedOnInstituteSettings(Menu menu){

private void updateMenuItemNames(Menu menu) {
if (mInstituteSettings != null) {
menu.findItem(R.id.posts).setVisible(Boolean.TRUE.equals(mInstituteSettings.getPostsEnabled()));
menu.findItem(R.id.posts).setTitle(Strings.toString(mInstituteSettings.getPostsLabel()));
menu.findItem(R.id.bookmarks).setTitle(Strings.toString(mInstituteSettings.getBookmarksLabel()));
}
Expand Down

0 comments on commit 6f3ed39

Please sign in to comment.