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

Commit 5715ad81 authored by Yurii Zubrytskyi's avatar Yurii Zubrytskyi
Browse files

[res] Use a more efficient OverlayPath construction

When creating it we can skip uniqueness checking as the source
paths are guaranteed to be unique

Test: build + boot
Flag: EXEMPT minor fix
Change-Id: Ie712a9849da5a9e3f9e0f3a3a31c17c726fa5f08
parent 8619e8e9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -293,8 +293,8 @@ public class PackageUserStateImpl extends WatchableImpl implements PackageUserSt
        if (mOverlayPaths == null && mSharedLibraryOverlayPaths == null) {
            return null;
        }
        final OverlayPaths.Builder newPaths = new OverlayPaths.Builder();
        newPaths.addAll(mOverlayPaths);
        final OverlayPaths.Builder newPaths = mOverlayPaths == null
                ? new OverlayPaths.Builder() : new OverlayPaths.Builder(mOverlayPaths);
        if (mSharedLibraryOverlayPaths != null) {
            for (final OverlayPaths libOverlayPaths : mSharedLibraryOverlayPaths.values()) {
                newPaths.addAll(libOverlayPaths);