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

Skip to content
Commit c9674336 authored by chaviw's avatar chaviw
Browse files

Traverse all layers to check if parent exists to add child layer.

With the current implementation, when adding a child layer, the code
only looks in the layersSortedByZ vector to see if the parent exists.
The layersSortedByZ vector only contains the top most layers and not the
child layers. The current behavior prevents creating child layers that
have a parent that is also a child layer. This won't allow for nested child
layers. Instead, traverse the list of layers, which will include looking
at the child layers, to see if the parent layer exists.

Test: NestedChildren test in Transaction_test

Change-Id: I6c1a773b65e450010733f74f459fc327c7af3aea
parent e04a8005
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