mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2026-01-04 15:24:19 +01:00
Update repository
This commit is contained in:
@@ -69,6 +69,7 @@ internal class ProfileViewModel @Inject constructor(
|
||||
api.isMissingServices,
|
||||
api.disconnectionEvent
|
||||
) { devices, missingServicesMap, disconnection ->
|
||||
deviceRepository.updateConnectedDevices(devices)
|
||||
val deviceData = devices[address]
|
||||
val isMissingServices = missingServicesMap[address] ?: false
|
||||
// Determine the UI state based on the service's state
|
||||
@@ -84,7 +85,6 @@ internal class ProfileViewModel @Inject constructor(
|
||||
it.profile
|
||||
)
|
||||
}
|
||||
deviceRepository.updateConnectedDevices(devices)
|
||||
val currentMaxVal =
|
||||
(_uiState.value as? ProfileUiState.Connected)?.maxValueLength
|
||||
ProfileUiState.Connected(deviceData, isMissingServices, currentMaxVal)
|
||||
|
||||
Reference in New Issue
Block a user