diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2024-01-17 16:37:45 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2024-01-17 16:37:48 +0530 |
commit | 3a7d298a6f5dc8a3f5c0df045dfc180678251fdd (patch) | |
tree | cf4c840ca5a4e27ba2d680da4e927ab4b7a7cf97 /app | |
parent | 1b40c950a430d1b778ec62f524128c5af29b5819 (diff) |
fix: restore copy-on-decrypt feature
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/app/passwordstore/ui/crypto/DecryptActivity.kt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/src/main/java/app/passwordstore/ui/crypto/DecryptActivity.kt b/app/src/main/java/app/passwordstore/ui/crypto/DecryptActivity.kt index 9fb20af2..29284f07 100644 --- a/app/src/main/java/app/passwordstore/ui/crypto/DecryptActivity.kt +++ b/app/src/main/java/app/passwordstore/ui/crypto/DecryptActivity.kt @@ -262,6 +262,9 @@ class DecryptActivity : BasePGPActivity() { val items = arrayListOf<FieldItem>() if (!entry.password.isNullOrBlank()) { items.add(FieldItem.createPasswordField(entry.password!!)) + if (settings.getBoolean(PreferenceKeys.COPY_ON_DECRYPT, false)) { + copyPasswordToClipboard(entry.password) + } } if (entry.hasTotp()) { |