[android] Fixed review notes

This commit is contained in:
Dmitry Donskoy 2018-09-11 14:05:41 +03:00 committed by Aleksandr Zatsepin
parent 13cf1e84cd
commit ae244476c9

View file

@ -188,7 +188,7 @@ public class BookmarkCategoriesAdapter extends BaseBookmarkCategoryAdapter<Recyc
public int getItemCount()
{
int count = super.getItemCount();
return count > 0 ? count + 1 /* header */ + (mType.getFactory().hasAdapterFooter() ? 1 : 0) /* add category btn */ : 0;
return count > 0 ? count + 1 /* header */ + (mType.getFactory().hasAdapterFooter() ? 1 : 0) : 0;
}
@NonNull