Skip to content

Commit

Permalink
Merge pull request #152 from seelchen/bugfix/review-analysis-adapter
Browse files Browse the repository at this point in the history
Fix one-off error in `ReviewAnalysisAdapter`
  • Loading branch information
VishalNehra authored Dec 20, 2023
2 parents 0bd5727 + c9faf98 commit b4a0df4
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 b4a0df4

Please sign in to comment.