Don't track visibility for children that will be removed after patch

This commit is contained in:
the-leo
2023-07-27 17:25:19 +03:00
parent 6ef263fd63
commit 253f1f2ea1
@@ -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)
}