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:
parent
f34ca109d8
commit
0a54fcf097
@ -147,6 +147,11 @@ class AppListFragment() : Fragment(), CursorOwner.Callback {
|
||||
updateRequest()
|
||||
}
|
||||
}
|
||||
launch {
|
||||
viewModel.skipSignatureStream.collect {
|
||||
updateRequest()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ class AppListViewModel
|
||||
settingsRepository: SettingsRepository,
|
||||
) : ViewModel() {
|
||||
|
||||
private val skipSignatureStream = settingsRepository
|
||||
val skipSignatureStream = settingsRepository
|
||||
.get { ignoreSignature }
|
||||
.asStateFlow(false)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user