Hi I have weird behavior using Compose in Android ...
# compose
m
Hi I have weird behavior using Compose in Android with text field. The text field itself: 1. DOES NOT have any semantics set via
Modifier.semantics { }
2. HAS
keyboardOptions = KeyboardOptions(imeAction = ImeAction.Next )
, But for some reason, the Google Password manager still offers to fill-in the password when focused. The
OutlinedTextField
has label:
<string name="branch_name_label">Prevádzka</string>
It's not offered for other inputs on same screen. Any idea, what could be the issue? 🤷 Thanks.
I've also tried to set custom "none" semantics:
Copy code
.semantics { contentType = ContentType("none") },
Didn't help. 😕
c
What does the label mean in English? I guess setting a „label“ is already some kind of semantic.
m
What does the label mean in English? I guess setting a „label“ is already some kind of semantic.
The label could be translated into "Branch" in English.
Well, I've fixed found workaround for it. This input was part of bigger form for filling-in the branch details - branch name, address, contact name, email, phone. It has multiple inputs, where one was
KeyboardType.Email
and another one
KeyboardType.Phone
So for some reason, the Gboard and Google password manager things that this input is … password, right?! 😄 I had to set those two inputs' keyboard type to
Text
and now it seems to work normally.