Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 76ab8a30 authored by Andreas Miko's avatar Andreas Miko
Browse files

Make ContentPicker work with NestedSharedElements

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
parent 40633698
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment