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

Commit 1faa0111 authored by Omar Miatello's avatar Omar Miatello
Browse files

STL ElementStateScope exposes lastSize()

This method returns an observable *last known size* of an Element.

## Important note
Usually updated **after** the measurement pass and after processing
children.

However, if the target size is known **in advance** (like during
transitions involving transformations or shared elements), the update
happens **before** measurement pass. This earlier update allows children
to potentially use this predetermined size during their own measurement.

This change has been discussed in ag/32426737

Test: atest ElementTest
Bug: 404526497
Flag: com.android.systemui.scene_container
Change-Id: I0a5821d557f38300a75a83d4013f385893b15c85
parent f7801c7f
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