do not allow long pressing Event List view section labels

This commit is contained in:
tibbi 2018-11-16 17:06:15 +01:00
parent 0b198a3c3a
commit 6a226de151
1 changed files with 1 additions and 1 deletions

View File

@ -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) {