Fix custom labels in favorites
This commit is contained in:
parent
f5d46f254c
commit
60f36795ab
@ -6,6 +6,7 @@ import de.mm20.launcher2.customattrs.CustomAttributesRepository
|
|||||||
import de.mm20.launcher2.favorites.FavoritesRepository
|
import de.mm20.launcher2.favorites.FavoritesRepository
|
||||||
import de.mm20.launcher2.preferences.LauncherDataStore
|
import de.mm20.launcher2.preferences.LauncherDataStore
|
||||||
import de.mm20.launcher2.search.data.Searchable
|
import de.mm20.launcher2.search.data.Searchable
|
||||||
|
import de.mm20.launcher2.ui.utils.withCustomLabels
|
||||||
import de.mm20.launcher2.widgets.WidgetRepository
|
import de.mm20.launcher2.widgets.WidgetRepository
|
||||||
import kotlinx.coroutines.flow.*
|
import kotlinx.coroutines.flow.*
|
||||||
import org.koin.core.component.KoinComponent
|
import org.koin.core.component.KoinComponent
|
||||||
@ -56,9 +57,12 @@ open class FavoritesVM : ViewModel(), KoinComponent {
|
|||||||
).map {
|
).map {
|
||||||
pinned + it
|
pinned + it
|
||||||
}
|
}
|
||||||
|
.withCustomLabels(customAttributesRepository)
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
emitAll(pinned)
|
emitAll(
|
||||||
|
pinned.withCustomLabels(customAttributesRepository)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user