Don't use password type keyboard for number input

Some devices will use secure keyboard for password input.
This commit is contained in:
FooIbar committed 2024-01-14 16:40:50 +08:00
1 parent bc6d12a873
commit 5ecf5c41ca
1 file changed
+2 -2
@@ -151,7 +151,7 @@ fun SearchFilter(
Column(horizontalAlignment = Alignment.CenterHorizontally) {
Row(verticalAlignment = Alignment.CenterVertically) {
OutlinedTextField(
keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.NumberPassword),
keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Number),
value = expectedValue.first.takeIf { it > 0 }?.toString().orEmpty(),
onValueChange = {
expectedValue =
@@ -163,7 +163,7 @@ fun SearchFilter(
)
Text(text = stringResource(id = R.string.search_sp_to))
OutlinedTextField(
keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.NumberPassword),
keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Number),
value = expectedValue.second.takeIf { it > 0 }?.toString().orEmpty(),
onValueChange = {
expectedValue =