Hi all, implementing a BottomSheet containing a camerax preview view, and have found that that ui is active even when the BottomSheet is fully collapsed (not too surprising), which means that my camera view is active, and the system ui shows that the camera is in use. I have 2 questions
1. Is there a way to have my Bottom Sheet content only enter the composition when the sheet is expanded?
2. On the back of that, i have implemented a separate viewmodel to control the BottomSheet content. is there a way to have that viewmodel's lifecycle match that of the bottom sheet content? right now it lives in the fragment and has the lifecycle of the whole screen containing the BottomSheet