Fix media integration settings app list not loading

This commit is contained in:
MM20 2024-02-19 00:28:52 +01:00
parent 60fb2b7309
commit 1c54166b58
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -51,7 +51,7 @@ class MediaIntegrationSettingsScreenVM : ViewModel(), KoinComponent {
loading.value = true
viewModelScope.launch(Dispatchers.Default) {
val musicApps = musicService.getInstalledPlayerPackages()
val allApps = appRepository.findMany().first().filter { it.profile == AppProfile.Personal }
val allApps = appRepository.findMany().first { it.isNotEmpty() }.filter { it.profile == AppProfile.Personal }
.distinctBy { it.componentName.packageName }
val settings = mediaSettings.first()
val allowList = settings.allowList