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

Skip to content
Commit 1eb4dea0 authored by Jordan Demeulenaere's avatar Jordan Demeulenaere
Browse files

Improve some common/ui/ utilities

This CL adds the @ReadyOnlyComposable to ContentDescription.load() and
Text.load(). This should slightly decrease the number of groups
generated by the Compose compiler, which is usually better for
performance.

This CL also makes use of rememberDrawablePainter() in Icon(), when the
passed icon is an Icon.Loaded(Drawable). I haven't measured this, but
this should be much better than converting the Drawable into a Bitmap
everytime Icon is recomposed.

Bug: 372412931
Test: Manual, volume panel (only user of Icon) still worked as expected
Flag: EXEMPT performance fix
Change-Id: I56f38a562f002645f6a625cc2cdf1e96e97ae5c6
parent acb120ef
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