paging out of bounds exception
This commit is contained in:
parent
e0a1f6534f
commit
e847ec21c3
3 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -170,7 +170,8 @@ class MangaExtensionAdapter(private val clickListener: OnMangaInstallClickListen
|
|||
|
||||
init {
|
||||
binding.closeTextView.setOnClickListener {
|
||||
val extension = getItem(bindingAdapterPosition)
|
||||
if (bindingAdapterPosition == RecyclerView.NO_POSITION) return@setOnClickListener
|
||||
val extension = getItem(bindingAdapterPosition)
|
||||
if (extension != null) {
|
||||
clickListener.onInstallClick(extension)
|
||||
binding.closeTextView.setImageResource(R.drawable.ic_sync)
|
||||
|
|
|
@ -176,6 +176,7 @@ class NovelExtensionAdapter(private val clickListener: OnNovelInstallClickListen
|
|||
|
||||
init {
|
||||
binding.closeTextView.setOnClickListener {
|
||||
if (bindingAdapterPosition == RecyclerView.NO_POSITION) return@setOnClickListener
|
||||
val extension = getItem(bindingAdapterPosition)
|
||||
if (extension != null) {
|
||||
clickListener.onInstallClick(extension)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue