fix (#2128): MQTT map reporting interval input (#2135)

This commit is contained in:
James Rich 2025-06-16 16:54:55 +00:00 committed by GitHub
parent 0b368ce0b1
commit 86905942de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 14 additions and 2 deletions

View file

@ -85,6 +85,7 @@ fun EditTextPreference(
title: String,
value: Int,
enabled: Boolean,
isError: Boolean = false,
keyboardActions: KeyboardActions,
onValueChanged: (Int) -> Unit,
modifier: Modifier = Modifier,
@ -97,7 +98,7 @@ fun EditTextPreference(
title = title,
value = valueState,
enabled = enabled,
isError = value.toUInt().toString() != valueState,
isError = value.toUInt().toString() != valueState || isError,
keyboardOptions = KeyboardOptions.Default.copy(
keyboardType = KeyboardType.Number, imeAction = ImeAction.Done
),