fix: Autofill username detection #2276

This commit is contained in:
J-Jamet committed 2025-11-17 17:28:08 +01:00
1 parent f19afbdb2e
commit 3b793a72b8
4 files changed
+6 -3

No files matched your search

@@ -154,7 +154,7 @@ class StructureParser(private val structure: AssistStructure) {
it.contains(View.AUTOFILL_HINT_PASSWORD, true) -> {
// Password Id changed if it's the second times we are here,
// So the last username candidate is most appropriate
if (result?.passwordId != null) {
if (result?.passwordId != null && usernameIdCandidate != null) {
result?.usernameId = usernameIdCandidate
result?.usernameValue = usernameValueCandidate
}