forked from organicmaps/organicmaps
[android] Disabled open sharing options screen btn if category publishing restricted
This commit is contained in:
parent
761edcd596
commit
70d0b88132
1 changed files with 2 additions and 0 deletions
|
@ -281,6 +281,8 @@ public class BookmarksListFragment extends BaseMwmRecyclerFragment<BookmarkListA
|
|||
if (isDownloadedCategory())
|
||||
return;
|
||||
inflater.inflate(R.menu.option_menu_bookmarks, menu);
|
||||
MenuItem item = menu.findItem(R.id.share);
|
||||
item.setVisible(getCategoryOrThrow().isSharingOptionsAllowed());
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue