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

Commit 2f271fe4 authored by Yurii Zubrytskyi's avatar Yurii Zubrytskyi
Browse files

[res] Don't create extra asset provider when not needed

MultiAssetsProvider is useful to combine a ResourcesLoader with
a file-based provider, but most of the time it's used without
any loaders, and ends up with an EmptyAssetsProvider object that
just wastes cycles and RAM.

This CL optimizes that out, only creating the extra layer when
we have a real loader, and falling back to the only remaining
provider otherwise

Bug: 319137634
Test: build + boot + manual + atest libandroidfw_tests
Flag: EXEMPT optimization
Change-Id: Ibc5ac60adc5e008b70a62481a747758c89083ff9
parent 84f0758b
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