random option
This commit is contained in:
parent
ea83b722a6
commit
e26a6c647f
6 changed files with 50 additions and 2 deletions
|
@ -300,6 +300,19 @@ class MediaAdaptor(
|
|||
return type
|
||||
}
|
||||
|
||||
fun randomOptionClick() { //used for user list
|
||||
val media = mediaList?.random()
|
||||
if (media != null) {
|
||||
mediaList?.let {
|
||||
clicked(
|
||||
it.indexOf(media),
|
||||
null
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
inner class MediaViewHolder(val binding: ItemMediaCompactBinding) :
|
||||
RecyclerView.ViewHolder(binding.root) {
|
||||
init {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue