diff --git a/app/src/main/java/com/hiddenramblings/tagmo/adapter/BrowserAdapter.kt b/app/src/main/java/com/hiddenramblings/tagmo/adapter/BrowserAdapter.kt index 8ae8d1d08..0b8554df6 100644 --- a/app/src/main/java/com/hiddenramblings/tagmo/adapter/BrowserAdapter.kt +++ b/app/src/main/java/com/hiddenramblings/tagmo/adapter/BrowserAdapter.kt @@ -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? { diff --git a/app/src/main/java/com/hiddenramblings/tagmo/adapter/FoomiiboAdapter.kt b/app/src/main/java/com/hiddenramblings/tagmo/adapter/FoomiiboAdapter.kt index 3216bbb65..2924f9b19 100644 --- a/app/src/main/java/com/hiddenramblings/tagmo/adapter/FoomiiboAdapter.kt +++ b/app/src/main/java/com/hiddenramblings/tagmo/adapter/FoomiiboAdapter.kt @@ -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 { diff --git a/app/src/main/java/com/hiddenramblings/tagmo/adapter/WriteTagAdapter.kt b/app/src/main/java/com/hiddenramblings/tagmo/adapter/WriteTagAdapter.kt index 751764942..cc49095ed 100644 --- a/app/src/main/java/com/hiddenramblings/tagmo/adapter/WriteTagAdapter.kt +++ b/app/src/main/java/com/hiddenramblings/tagmo/adapter/WriteTagAdapter.kt @@ -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? {