Skip to content

Commit

Permalink
Invert logic in cashapp#1388 (cashapp#1425)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrodbx authored May 14, 2024
1 parent 3d94ca0 commit 4fa9171
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions paparazzi/src/main/java/app/cash/paparazzi/PaparazziSdk.kt
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,10 @@ public class PaparazziSdk @JvmOverloads constructor(
}
}
} finally {
// Remove original view from parent, even if there aren't render extensions applied
(view.parent as ViewGroup).removeView(view)
viewGroup.removeView(modifiedView)
// Remove any applied render extensions
if (modifiedView !== view) {
viewGroup.removeView(modifiedView)
(view.parent as ViewGroup).removeView(view)
}
AnimationHandler.sAnimatorHandler.set(null)
if (hasComposeRuntime) {
Expand Down

0 comments on commit 4fa9171

Please sign in to comment.