Skip to content

Commit

Permalink
Remove all views to fix issue with compose dialiog views that get added
Browse files Browse the repository at this point in the history
  • Loading branch information
geoff-powell committed Jul 12, 2024
1 parent d679b05 commit 064b60a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion paparazzi/src/main/java/app/cash/paparazzi/PaparazziSdk.kt
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,8 @@ public class PaparazziSdk @JvmOverloads constructor(
}
}
} finally {
viewGroup.removeView(modifiedView)
viewGroup.removeAllViews()

// Remove any applied render extensions
if (modifiedView !== view) {
(view.parent as ViewGroup).removeView(view)
Expand Down

0 comments on commit 064b60a

Please sign in to comment.