+28
−17
packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/SceneTransitionLayoutImpl.kt
+45
−22
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Prior to ag/30638736 we did not have a way to track a parent transition from within a NestedStl, therefore we could not animate an element based on a transition of an ancestor. This meant that for sharedElements across nested STLs we always had to render the element in the highest ancestor. With this change we can render sharedElements in any content and therefore we can bring back and simplify the code to use ContentPickers as before. This change needs to make adjustments to how we calculate zIndex for each content, otherwise for each nestedSTL the zIndex is counted from 0f, therefore the default content picker (HighestZOrder) has mostly arbitrary results. Bug: 376659778 Test: Added new unit tests Flag: com.android.systemui.scene_container Change-Id: I72966b55f1b6fd53d88b0670f855ff5a3120f2a0