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

Commit 64579f66 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Fixing package override is applied in all lookup options

Bug: 369205074
Test: Verified manually
Flag: com.android.launcher3.enable_support_for_archiving
Change-Id: Ic4c65232ecd87a1e19b769bcb3dee2497a2f41b4
parent ab431b16
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -588,6 +588,16 @@ public abstract class BaseIconCache {
        return new ComponentKey(cn, user);
    }

    /**
     * Returns the package entry if it has already been cached in memory, null otherwise
     */
    @Nullable
    protected CacheEntry getInMemoryPackageEntryLocked(@NonNull final String packageName,
            @NonNull final UserHandle user) {
        assertWorkerThread();
        return mCache.get(getPackageKey(packageName, user));
    }

    /**
     * Gets an entry for the package, which can be used as a fallback entry for various components.
     * This method is not thread safe, it must be called from a synchronized method.