Respect encrypted username when filling Autofill generated entry
This commit is contained in:
parent
d6db10e089
commit
5a3220527f
1 changed files with 3 additions and 4 deletions
|
@ -609,10 +609,9 @@ class PgpActivity : AppCompatActivity(), OpenPgpServiceConnection.OnBound {
|
|||
AutofillPreferences.directoryStructure(applicationContext)
|
||||
val entry = PasswordEntry(content)
|
||||
returnIntent.putExtra("PASSWORD", entry.password)
|
||||
returnIntent.putExtra(
|
||||
"USERNAME",
|
||||
directoryStructure.getUsernameFor(file)
|
||||
)
|
||||
val username = PasswordEntry(content).username
|
||||
?: directoryStructure.getUsernameFor(file)
|
||||
returnIntent.putExtra("USERNAME", username)
|
||||
}
|
||||
|
||||
setResult(RESULT_OK, returnIntent)
|
||||
|
|
Loading…
Reference in a new issue