paging out of bounds exception

This commit is contained in:
Finnley Somdahl 2024-01-12 21:09:15 -06:00
parent e0a1f6534f
commit e847ec21c3
3 changed files with 4 additions and 1 deletions

View file

@ -173,6 +173,7 @@ class AnimeExtensionAdapter(private val clickListener: OnAnimeInstallClickListen
init {
binding.closeTextView.setOnClickListener {
if (bindingAdapterPosition == RecyclerView.NO_POSITION) return@setOnClickListener
val extension = getItem(bindingAdapterPosition)
if (extension != null) {
clickListener.onInstallClick(extension)