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

Commit 5894c65e authored by Schneider Victor-tulias's avatar Schneider Victor-tulias Committed by Automerger Merge Worker
Browse files

Fix launcher crash loop. am: fabee838

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/libs/systemui/+/16493487

Change-Id: I48d70a21bfd42557a762d064b49059b5faeedf48
parents b9acabe9 fabee838
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -265,7 +265,14 @@ public abstract class BaseIconCache {
        // (e.g. fallback icon, default icon). So we drop here since there's no point in caching
        // an empty entry.
        if (entry.bitmap.isNullOrLowRes()) return;
        entry.title = cachingLogic.getLabel(object);

        CharSequence entryTitle = cachingLogic.getLabel(object);
        if (entryTitle == null) {
            Log.d(TAG, "No label returned from caching logic instance: " + cachingLogic);
            return;
        }
        entry.title = entryTitle;

        entry.contentDescription = mPackageManager.getUserBadgedLabel(entry.title, user);
        if (cachingLogic.addToMemCache()) mCache.put(key, entry);