[android] Added support SetAllCategoryVisible with Type for BookmarksCategory

This commit is contained in:
Dmitry Donskoy 2018-06-21 20:33:48 +03:00 committed by Aleksandr Zatsepin
parent 62a24dd77f
commit 1a3ecbf65d
2 changed files with 4 additions and 4 deletions

View file

@ -215,14 +215,14 @@ public class BookmarkCategoriesAdapter extends BaseBookmarkCategoryAdapter<Recyc
@Override
public void onHideAll()
{
BookmarkManager.INSTANCE.setAllCategoriesVisibility(false);
BookmarkManager.INSTANCE.setAllCategoriesVisibility(false, mType);
notifyDataSetChanged();
}
@Override
public void onShowAll()
{
BookmarkManager.INSTANCE.setAllCategoriesVisibility(true);
BookmarkManager.INSTANCE.setAllCategoriesVisibility(true, mType);
notifyDataSetChanged();
}
}

View file

@ -456,9 +456,9 @@ public enum BookmarkManager
return areAllCategoriesInvisible(BookmarkCategory.Type.PRIVATE);
}
public void setAllCategoriesVisibility(boolean visible)
public void setAllCategoriesVisibility(boolean visible, @NonNull BookmarkCategory.Type type)
{
nativeSetAllCategoriesVisibility(visible, BookmarkCategory.Type.PRIVATE.ordinal());
nativeSetAllCategoriesVisibility(visible, type.ordinal());
}
public int getKmlFilesCountForConversion()