fix(autofill): populate passphrase cache on successful decryption

This commit is contained in:
Harsh Shandilya 2024-03-12 12:39:29 +05:30
parent 88facd7871
commit 0d7d6eae79

View file

@ -185,6 +185,7 @@ class AutofillDecryptActivity : BasePGPActivity() {
} }
.onSuccess { result -> .onSuccess { result ->
return runCatching { return runCatching {
passphraseCache.cachePassphrase(this, gpgIdentifiers.first(), password)
val entry = passwordEntryFactory.create(result.toByteArray()) val entry = passwordEntryFactory.create(result.toByteArray())
AutofillPreferences.credentialsFromStoreEntry(this, file, entry, directoryStructure) AutofillPreferences.credentialsFromStoreEntry(this, file, entry, directoryStructure)
} }