Skip to content

Commit

Permalink
change getOnlyItemsCount to return actual number of items
Browse files Browse the repository at this point in the history
  • Loading branch information
seelchen committed Dec 20, 2023
1 parent 0bd5727 commit c9faf98
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,14 @@ class ReviewAnalysisAdapter(
}
}

/** Returns the number of items. There might be dummy items, that are also counted here */
override fun getItemCount(): Int {
return mediaFileListItems.size
}

/** Returns the number of actual items. Dummy items are not counted. */
override fun getOnlyItemsCount(): Int {
return mediaFileListItems.size
return mediaFileListItems.size - 1
}

override fun getItemViewType(position: Int): Int {
Expand Down

0 comments on commit c9faf98

Please sign in to comment.