diff options
author | Fabian Henneke <fabian@henneke.me> | 2020-04-15 17:13:19 +0200 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2020-04-15 22:47:41 +0530 |
commit | 5a3220527f46554e6975445097554a883bfbe3f8 (patch) | |
tree | db64e0e85edea5c1b5a1b80a47ce2e7a5f7a758c /app/src/main/java/com/zeapo | |
parent | d6db10e0893af72de6ebc40fd47a775def7ec1d8 (diff) |
Respect encrypted username when filling Autofill generated entry
Diffstat (limited to 'app/src/main/java/com/zeapo')
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/crypto/PgpActivity.kt | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpActivity.kt b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpActivity.kt index cd96e3d1..d878f0a8 100644 --- a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpActivity.kt +++ b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpActivity.kt @@ -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) |