fix: skipSignatureStream from AppListViewModel

This allows the AppListFragment to observe changes to the skipSignature setting and update the app list request accordingly.
This commit is contained in:
LooKeR 2025-06-08 17:48:49 +05:30
parent f34ca109d8
commit 0a54fcf097
No known key found for this signature in database
GPG Key ID: 6B59369FDB608FB9
2 changed files with 6 additions and 1 deletions

View File

@ -147,6 +147,11 @@ class AppListFragment() : Fragment(), CursorOwner.Callback {
updateRequest()
}
}
launch {
viewModel.skipSignatureStream.collect {
updateRequest()
}
}
}
}
}

View File

@ -30,7 +30,7 @@ class AppListViewModel
settingsRepository: SettingsRepository,
) : ViewModel() {
private val skipSignatureStream = settingsRepository
val skipSignatureStream = settingsRepository
.get { ignoreSignature }
.asStateFlow(false)