diff --git a/services/icons/src/main/java/de/mm20/launcher2/icons/IconService.kt b/services/icons/src/main/java/de/mm20/launcher2/icons/IconService.kt index 5d95b065..f224eae7 100644 --- a/services/icons/src/main/java/de/mm20/launcher2/icons/IconService.kt +++ b/services/icons/src/main/java/de/mm20/launcher2/icons/IconService.kt @@ -142,7 +142,7 @@ class IconService( fun getIcon(searchable: SavableSearchable, size: Int): Flow { val customIcon = customAttributesRepository.getCustomIcon(searchable) return combine(iconProviders, transformations, customIcon) { providers, transformations, ci -> - var icon = cache.get(searchable.key + customIcon.hashCode()) + var icon = cache.get(searchable.key + ci.hashCode()) if (icon != null) { return@combine icon } @@ -155,7 +155,7 @@ class IconService( if (icon != null) { icon = icon.transform(transforms) - cache.put(searchable.key + customIcon.hashCode(), icon) + cache.put(searchable.key + ci.hashCode(), icon) } return@combine icon }