Skip to content

Commit

Permalink
This override requires an unfiltered data set
Browse files Browse the repository at this point in the history
  • Loading branch information
AbandonedCart committed Dec 10, 2024
1 parent 7272572 commit eb3adad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class BrowserAdapter(
}

override fun getItemId(position: Int): Long {
return filteredData[position]?.id?.plus(position) ?: position.toLong()
return data[position]?.id?.plus(position) ?: position.toLong()
}

private fun getItem(i: Int): AmiiboFile? {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class FoomiiboAdapter(
}

override fun getItemId(position: Int): Long {
return filteredData[position].id + position
return data[position].id + position
}

private fun getItem(i: Int): Amiibo {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class WriteTagAdapter(private val settings: BrowserSettings?) :
}

override fun getItemId(position: Int): Long {
return filteredData[position]?.id?.plus(position) ?: position.toLong()
return amiiboFiles[position]?.id?.plus(position) ?: position.toLong()
}

private fun getItem(i: Int): AmiiboFile? {
Expand Down

0 comments on commit eb3adad

Please sign in to comment.