Luis Mierez
06/25/2021, 2:04 PMIan Lake
06/25/2021, 2:56 PMAndroidViewBinding
to inflate a layout with a FragmentContainerView
- that's the only setup that will automatically add and importantly remove the Fragment when you remove that AndroidViewBinding
from your Composable hierarchyValentin Moscone
09/01/2023, 7:03 PMIan Lake
09/01/2023, 7:05 PMAndroidViewBinding
automatically removes the Fragment from the FragmentManager when the AndroidView
reaches its onRelease
so nothing in the framework should be holding onto that Fragment beyond the disposal of the `AndroidViewBinding`: https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/[…]a/androidx/compose/ui/viewinterop/AndroidViewBinding.kt;l=198Valentin Moscone
09/01/2023, 7:07 PM