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

Commit ab420dd1 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fixing package override is applied in all lookup options" into main

parents 17d8509d 64579f66
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.