mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2026-01-05 07:44:20 +01:00
Refactoring
This commit is contained in:
@@ -86,8 +86,8 @@ internal fun HomeView() {
|
||||
verticalArrangement = Arrangement.spacedBy(16.dp),
|
||||
modifier = Modifier.fillMaxWidth()
|
||||
) {
|
||||
state.connectedDevices.keys.forEach {
|
||||
state.connectedDevices[it]?.let { deviceData ->
|
||||
state.connectedDevices.keys.forEach { device ->
|
||||
state.connectedDevices[device]?.let { deviceData ->
|
||||
if (deviceData.connectionState.isConnected) {
|
||||
// Skip if no services
|
||||
if (deviceData.services.isEmpty()) return@forEach
|
||||
|
||||
Reference in New Issue
Block a user