[feedback]添加主动场景内置并优化数据加载逻辑
This commit is contained in:
@@ -255,8 +255,12 @@ private class GestureConflictFixer(private val ids: List<Int>) : RecyclerView.On
|
||||
private fun computeIntercepted(x: Int, y: Int, rv: RecyclerView, ids: List<Int>): Boolean {
|
||||
return ids.takeIf { it.isNotEmpty() }?.find {
|
||||
val out = Rect()
|
||||
rv.findViewById<View>(it).getGlobalVisibleRect(out)
|
||||
out.contains(x, y)
|
||||
rv.findViewById<View>(it)?.getGlobalVisibleRect(out)
|
||||
if (!out.isEmpty) {
|
||||
out.contains(x, y)
|
||||
} else {
|
||||
false
|
||||
}
|
||||
}?.let { it != View.NO_ID } ?: false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user