mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
do not allow clicking empty portrait placeholders
This commit is contained in:
@ -72,13 +72,14 @@ class PortraitPhotosAdapter(val context: Context, val photos: ArrayList<String>,
|
|||||||
.into(portrait_photo_item_thumbnail)
|
.into(portrait_photo_item_thumbnail)
|
||||||
|
|
||||||
if (photo.isNotEmpty()) {
|
if (photo.isNotEmpty()) {
|
||||||
|
isClickable = true
|
||||||
views[position] = this
|
views[position] = this
|
||||||
setOnClickListener {
|
setOnClickListener {
|
||||||
itemClick(position, x.toInt())
|
itemClick(position, x.toInt())
|
||||||
setCurrentPhoto(position)
|
setCurrentPhoto(position)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
setOnClickListener(null)
|
isClickable = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return itemView
|
return itemView
|
||||||
|
Reference in New Issue
Block a user