Respect encrypted username when filling Autofill generated entry

This commit is contained in:
Fabian Henneke 2020-04-15 17:13:19 +02:00 committed by Harsh Shandilya
parent d6db10e089
commit 5a3220527f

View file

@ -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)