From 064b60a96782c7f7a8b731feb3179b2e192e2b12 Mon Sep 17 00:00:00 2001 From: Geoff Powell Date: Fri, 12 Jul 2024 14:00:34 -0400 Subject: [PATCH] Remove all views to fix issue with compose dialiog views that get added --- paparazzi/src/main/java/app/cash/paparazzi/PaparazziSdk.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paparazzi/src/main/java/app/cash/paparazzi/PaparazziSdk.kt b/paparazzi/src/main/java/app/cash/paparazzi/PaparazziSdk.kt index 33375b2999..54dc0006c0 100644 --- a/paparazzi/src/main/java/app/cash/paparazzi/PaparazziSdk.kt +++ b/paparazzi/src/main/java/app/cash/paparazzi/PaparazziSdk.kt @@ -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)