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

Commit 3c938f2e authored by rovo89's avatar rovo89 Committed by Gerrit Code Review
Browse files

Restore lazy loading of LoadedApk resources

This was broken in 8fff544e. Since that change,
resources are always initialized in getPackageInfo(), even if they haven't been
loaded before (mResources == null).

It shouldn't be necessary in *any* case to preload the resources at this point.
Anything using the resources should call LoadedApk.getResources(), which will
initialize them just when needed. Setting mResources to null resets the cache
and will force a reload the next time the resources are requested.

Change-Id: I9bc9986297478e99752b1e2b9bd04dab3dcc9656
parent fb8cc5de
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