Fix RemoveClipped subviews algorithm

Summary:
For real this time, the change was lost due to some merge conflict

Changelog: [Internal]

Reviewed By: Abbondanzo

Differential Revision: D73726167

fbshipit-source-id: 1e0cef75f59a166d795922266365b2b7b060472e
This commit is contained in:
Jorge Cabiedes Acosta
2025-04-26 17:35:22 -07:00
committed by Facebook GitHub Bot
parent 319ba0afd2
commit eb2f6b1ae5
@@ -521,7 +521,7 @@ public class ReactViewGroup extends ViewGroup
// therefore invalidation is not necessary.
removeViewInLayout(child);
needUpdateClippingRecursive = true;
} else if (shouldSkipView || (intersects && isViewClipped(child, idx))) {
} else if ((shouldSkipView || intersects) && isViewClipped(child, idx)) {
int adjustedIdx = idx - clippedSoFar;
Assertions.assertCondition(adjustedIdx >= 0);
setViewClipped(child, false);