mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Update HomeParentItemAdapter.kt
Should fix last item problem
This commit is contained in:
parent
ad67b9ddab
commit
375b3ec46e
1 changed files with 2 additions and 2 deletions
|
@ -72,7 +72,7 @@ open class ParentItemAdapter(
|
||||||
|
|
||||||
open fun onSaveInstanceState(outState: Bundle, recyclerView: RecyclerView? = null) {
|
open fun onSaveInstanceState(outState: Bundle, recyclerView: RecyclerView? = null) {
|
||||||
if (recyclerView != null) {
|
if (recyclerView != null) {
|
||||||
for (position in items.indices) {
|
for (position in 0..itemCount) {
|
||||||
val holder = recyclerView.findViewHolderForAdapterPosition(position) ?: continue
|
val holder = recyclerView.findViewHolderForAdapterPosition(position) ?: continue
|
||||||
saveHolder(holder)
|
saveHolder(holder)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue