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

Change Section to throw UnsupportedOperationException #178

Closed luizgrp closed 5 years ago

luizgrp commented 5 years ago

Change Section to throw UnsupportedOperationException instead of returning EmptyViewHolder for methods getHeaderViewHolder, getFooterViewHolder, getLoadingViewHolder, getFailedViewHolder and getEmptyViewHolder.

codecov-io commented 5 years ago

Codecov Report

Merging #178 into 3.0.0 will decrease coverage by 0.53%. The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##            3.0.0     #178      +/-   ##
==========================================
- Coverage   91.66%   91.13%   -0.54%     
==========================================
  Files           6        5       -1     
  Lines         564      564              
  Branches       73       73              
==========================================
- Hits          517      514       -3     
- Misses         26       27       +1     
- Partials       21       23       +2
Impacted Files Coverage Δ
...yclerviewadapter/SectionedRecyclerViewAdapter.java 86.79% <ø> (-0.95%) :arrow_down:
...r/compat/SectionedRecyclerViewAdapterV2Compat.java 97.89% <0%> (-2.11%) :arrow_down:
.../luizgrp/sectionedrecyclerviewadapter/Section.java 79.54% <0%> (+1.13%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b435f41...2eaf0f1. Read the comment docs.