do not allow long pressing Event List view section labels
This commit is contained in:
parent
0b198a3c3a
commit
6a226de151
|
@ -85,7 +85,7 @@ class EventListAdapter(activity: SimpleActivity, var listItems: ArrayList<ListIt
|
||||||
|
|
||||||
override fun onBindViewHolder(holder: MyRecyclerViewAdapter.ViewHolder, position: Int) {
|
override fun onBindViewHolder(holder: MyRecyclerViewAdapter.ViewHolder, position: Int) {
|
||||||
val listItem = listItems[position]
|
val listItem = listItems[position]
|
||||||
holder.bindView(listItem, true, allowLongClick) { itemView, layoutPosition ->
|
holder.bindView(listItem, true, allowLongClick && listItem is ListEvent) { itemView, layoutPosition ->
|
||||||
if (listItem is ListSection) {
|
if (listItem is ListSection) {
|
||||||
setupListSection(itemView, listItem, position)
|
setupListSection(itemView, listItem, position)
|
||||||
} else if (listItem is ListEvent) {
|
} else if (listItem is ListEvent) {
|
||||||
|
|
Loading…
Reference in New Issue