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

Commit 97c1e54e authored by Joel Galenson's avatar Joel Galenson
Browse files

Convert usage preferences from nested LinearLayout to ConstraintLayout.

The initial layout of the Permissions Hub has a very slow
measure/layout phase.  I believe this is due to having a large number
of complicated layouts.  The official documentation recommends
replacing LinearLayouts with a layout_weight (which these did) with
ConstraintLayouts.  This commit makes that change.  It should not
change functionality at all.

On my dev device, this seems to speed up the initial layout phase by
15-20%.

Bug: 125332206
Test: Use systrace to time enabling "Show system apps".
Test: Manually compare this to the old screen and they look about the
same to me.

Change-Id: I33849a6a1249822d1e13e204aeff3cc728a32762
parent f2f46e6c
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