luizgrp / SectionedRecyclerViewAdapter

An Adapter that allows a RecyclerView to be split into Sections with headers and/or footers. Each Section can have its state controlled individually.
MIT License
1.68k stars 372 forks source link

Handle case when content count is 0 #70

Closed yccheok closed 7 years ago

yccheok commented 7 years ago

@luizgrp

Sorry. I think there's possible bug in my previous commits.

Do you think we need to handle case for -ve ?

If you agree with the fix, I will add more unit test.

yccheok commented 7 years ago

Done with unit tests. Hope you like it :)

Just one thing on naming

I'm not sure using ContentItemsCount or ContentItemsTotal better.