mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-29 05:17:43 +00:00
Fix Autofill ANR when entry has no TOTP (#1746)
This commit is contained in:
parent
acc448ce74
commit
d8b5880215
@ -143,6 +143,7 @@ object AutofillPreferences {
|
||||
// Always give priority to a username stored in the encrypted extras
|
||||
val username =
|
||||
entry.username ?: directoryStructure.getUsernameFor(file) ?: context.getDefaultUsername()
|
||||
return Credentials(username, entry.password, runBlocking { entry.totp.first() })
|
||||
val totp = if (entry.hasTotp()) runBlocking { entry.totp.first() } else null
|
||||
return Credentials(username, entry.password, totp)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user