mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2026-01-22 16:14:23 +01:00
Implement screens for DFU
This commit is contained in:
@@ -279,11 +279,13 @@ fun HomeView(callback: (NavDestination) -> Unit) {
|
||||
contentAlignment = Alignment.Center
|
||||
) {
|
||||
FeatureButton(
|
||||
R.drawable.ic_uart, R.string.uart_module,
|
||||
R.drawable.ic_dfu, R.string.dfu_module,
|
||||
R.string.uart_module_full
|
||||
) { callback(NavDestination.DFU) }
|
||||
}
|
||||
}
|
||||
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,6 +12,6 @@ class HomeViewModel @Inject constructor(
|
||||
) : ViewModel() {
|
||||
|
||||
fun onDeviceSelected(device: DiscoveredBluetoothDevice) {
|
||||
deviceHolder.attachDevice(device.device)
|
||||
deviceHolder.attachDevice(device)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user