Fix radio button clicks in multiselect mode.
This commit is contained in:
parent
d39ec479ba
commit
bf2ab74ca4
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ class MultiselectRecyclerView @JvmOverloads constructor(
|
|||
) : RecyclerView(context, attrs) {
|
||||
|
||||
override fun onInterceptTouchEvent(e: MotionEvent): Boolean {
|
||||
val child: View? = children.firstOrNull { it is Multiselectable }
|
||||
val child: View? = children.firstOrNull { it is Multiselectable && e.y.toInt() in it.top..it.bottom }
|
||||
if (child != null) {
|
||||
child.getHitRect(rect)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue