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) AutofillPreferences.directoryStructure(applicationContext)
val entry = PasswordEntry(content) val entry = PasswordEntry(content)
returnIntent.putExtra("PASSWORD", entry.password) returnIntent.putExtra("PASSWORD", entry.password)
returnIntent.putExtra( val username = PasswordEntry(content).username
"USERNAME", ?: directoryStructure.getUsernameFor(file)
directoryStructure.getUsernameFor(file) returnIntent.putExtra("USERNAME", username)
)
} }
setResult(RESULT_OK, returnIntent) setResult(RESULT_OK, returnIntent)