ebarrenechea / header-decor

A couple of sticky header decorations for android's recycler view.
Apache License 2.0
879 stars 159 forks source link

DoubleHeaderDecoration does not render header+subheader if headerId is different but subheaderId is the same #78

Open Zhuinden opened 7 years ago

Zhuinden commented 7 years ago

We had a header that is DATE and a subheader that is a PLACE_ID (long), and if PLACE_ID == PLACE_ID for two elements, but their headerId is different, then the header and subheader are not rendered and the two categories are merged.

I solved this issue by using header + subHeader (so date.getTime() + placeId) as the subHeaderId instead.