mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2025-12-24 01:44:23 +01:00
Clear input after sending
This commit is contained in:
@@ -32,7 +32,10 @@ internal fun InputSection(onEvent: (UARTViewEvent) -> Unit) {
|
||||
Spacer(modifier = Modifier.size(16.dp))
|
||||
|
||||
Button(
|
||||
onClick = { onEvent(OnRunInput(text.value, checkedItem.value)) },
|
||||
onClick = {
|
||||
onEvent(OnRunInput(text.value, checkedItem.value))
|
||||
text.value = String.EMPTY
|
||||
},
|
||||
modifier = Modifier.padding(top = 6.dp)
|
||||
) {
|
||||
Text(text = stringResource(id = R.string.uart_send))
|
||||
|
||||
Reference in New Issue
Block a user