From bc66b242de14c829884652f34cb03b2390438fe4 Mon Sep 17 00:00:00 2001 From: MM20 <15646950+MM2-0@users.noreply.github.com> Date: Fri, 23 Sep 2022 23:25:35 +0200 Subject: [PATCH] Fix custom labels and sorting in pinned tags --- ui/src/main/java/de/mm20/launcher2/ui/common/FavoritesVM.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/src/main/java/de/mm20/launcher2/ui/common/FavoritesVM.kt b/ui/src/main/java/de/mm20/launcher2/ui/common/FavoritesVM.kt index ac1bd282..67453239 100644 --- a/ui/src/main/java/de/mm20/launcher2/ui/common/FavoritesVM.kt +++ b/ui/src/main/java/de/mm20/launcher2/ui/common/FavoritesVM.kt @@ -75,7 +75,10 @@ open class FavoritesVM : ViewModel(), KoinComponent { } } } else { - customAttributesRepository.getItemsForTag(tag) + customAttributesRepository + .getItemsForTag(tag) + .withCustomLabels(customAttributesRepository) + .map { it.sorted() } } }.shareIn(viewModelScope, SharingStarted.WhileSubscribed(), replay = 1)