diff --git a/android/src/com/mapswithme/maps/bookmarks/BookmarksListFragment.java b/android/src/com/mapswithme/maps/bookmarks/BookmarksListFragment.java index 7d7a156b1f..5c787ad60e 100644 --- a/android/src/com/mapswithme/maps/bookmarks/BookmarksListFragment.java +++ b/android/src/com/mapswithme/maps/bookmarks/BookmarksListFragment.java @@ -24,6 +24,7 @@ import com.google.android.material.floatingactionbutton.FloatingActionButton; import com.mapswithme.maps.MwmActivity; import com.mapswithme.maps.R; import com.mapswithme.maps.base.BaseMwmRecyclerFragment; +import com.mapswithme.maps.bookmarks.data.AbstractCategoriesSnapshot; import com.mapswithme.maps.bookmarks.data.BookmarkCategory; import com.mapswithme.maps.bookmarks.data.BookmarkInfo; import com.mapswithme.maps.bookmarks.data.BookmarkManager; @@ -490,6 +491,12 @@ public class BookmarksListFragment extends BaseMwmRecyclerFragment 0); + bs.getMenu().findItem(R.id.delete_category).setVisible(!isLastOwnedCategory()); BottomSheetHelper.tint(bs); bs.show(); diff --git a/android/src/com/mapswithme/maps/bookmarks/data/AbstractCategoriesSnapshot.java b/android/src/com/mapswithme/maps/bookmarks/data/AbstractCategoriesSnapshot.java index a34c2f18a6..129a26ccb7 100644 --- a/android/src/com/mapswithme/maps/bookmarks/data/AbstractCategoriesSnapshot.java +++ b/android/src/com/mapswithme/maps/bookmarks/data/AbstractCategoriesSnapshot.java @@ -17,7 +17,7 @@ public abstract class AbstractCategoriesSnapshot } @NonNull - protected List getItems() + public List getItems() { return mSnapshot; }