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 ef2970c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 ef2970c

Please sign in to comment.