mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-05 22:03:25 +01:00
do not allow clicking empty portrait placeholders
This commit is contained in:
parent
dcd7c96380
commit
4848616d88
@ -72,13 +72,14 @@ class PortraitPhotosAdapter(val context: Context, val photos: ArrayList<String>,
|
||||
.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
|
||||
|
Loading…
x
Reference in New Issue
Block a user