I'm running into issues between ComposeView intero...
# compose
p
I'm running into issues between ComposeView interop:
Copy code
ViewTreeLifecycleOwner not set for this ComposeView
This is because the transition manager detaches the view for transitions:
Copy code
at android.view.ViewGroupOverlay.add(ViewGroupOverlay.java:72)
        at androidx.transition.ViewGroupOverlayApi18.add(ViewGroupOverlayApi18.java:48)
        at androidx.transition.Visibility.onDisappear(Visibility.java:431)
        at androidx.transition.Visibility.createAnimator(Visibility.java:257)
        at androidx.transition.Transition.createAnimators(Transition.java:744)
        at androidx.transition.Transition.playTransition(Transition.java:1808)
        at androidx.transition.TransitionManager$MultiListener.onPreDraw(TransitionManager.java:300)
Is this a known thing?
e
We ran into this when trying to use the default functionality (allowing ComposeView to find owners from the host Activity) too. If you set them explicitly this problem goes away.
If you're using some other framework, ex conductor, you should probably be explicitly setting these based on the lifecycle of the host component anyway, rather than relying on the Activity
☝️ 1
p
Conductor... Can you tell me more about that? 🥰