forked from organicmaps/organicmaps
Merge pull request #5393 from goblinr/MAPSME-146-ext-fix-empty-bookmarks-message-overlap
[android] fix bookmarks empty message overlapping
This commit is contained in:
commit
81630606b5
2 changed files with 3 additions and 2 deletions
|
@ -106,7 +106,8 @@ public class BookmarkCategoriesAdapter extends BaseBookmarkCategoryAdapter<Bookm
|
|||
@Override
|
||||
public int getItemCount()
|
||||
{
|
||||
return super.getItemCount() + 1;
|
||||
int count = super.getItemCount();
|
||||
return count > 0 ? count + 1 : 0;
|
||||
}
|
||||
|
||||
static class ViewHolder extends RecyclerView.ViewHolder
|
||||
|
|
|
@ -64,7 +64,7 @@ public class BookmarkCategoriesFragment extends BaseMwmRecyclerFragment
|
|||
|
||||
private void updateResultsPlaceholder()
|
||||
{
|
||||
showPlaceholder(getAdapter().getItemCount() == 1);
|
||||
showPlaceholder(getAdapter().getItemCount() == 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue