mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
Don't track visibility for children that will be removed after patch
This commit is contained in:
+2
@@ -291,6 +291,8 @@ internal class DivGalleryBinder @Inject constructor(
|
||||
|
||||
recycler.children.forEach { child ->
|
||||
val position = recycler.getChildAdapterPosition(child)
|
||||
if (position == RecyclerView.NO_POSITION) return@forEach
|
||||
|
||||
val div = (recycler.adapter as GalleryAdapter).items[position]
|
||||
visibilityActionTracker.trackVisibilityActionsOf(divView, child, div)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user