diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/PortraitPhotosAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/PortraitPhotosAdapter.kt index 950e4edf7..1752db8ca 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/PortraitPhotosAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/PortraitPhotosAdapter.kt @@ -72,13 +72,14 @@ class PortraitPhotosAdapter(val context: Context, val photos: ArrayList, .into(portrait_photo_item_thumbnail) if (photo.isNotEmpty()) { + isClickable = true views[position] = this setOnClickListener { itemClick(position, x.toInt()) setCurrentPhoto(position) } } else { - setOnClickListener(null) + isClickable = false } } return itemView