Fix custom labels in favorites

This commit is contained in:
MM20 2022-09-23 12:45:44 +02:00
parent f5d46f254c
commit 60f36795ab
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -6,6 +6,7 @@ import de.mm20.launcher2.customattrs.CustomAttributesRepository
import de.mm20.launcher2.favorites.FavoritesRepository
import de.mm20.launcher2.preferences.LauncherDataStore
import de.mm20.launcher2.search.data.Searchable
import de.mm20.launcher2.ui.utils.withCustomLabels
import de.mm20.launcher2.widgets.WidgetRepository
import kotlinx.coroutines.flow.*
import org.koin.core.component.KoinComponent
@ -56,9 +57,12 @@ open class FavoritesVM : ViewModel(), KoinComponent {
).map {
pinned + it
}
.withCustomLabels(customAttributesRepository)
})
} else {
emitAll(pinned)
emitAll(
pinned.withCustomLabels(customAttributesRepository)
)
}
}
} else {