From 3a7d298a6f5dc8a3f5c0df045dfc180678251fdd Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Wed, 17 Jan 2024 16:37:45 +0530 Subject: fix: restore copy-on-decrypt feature --- app/src/main/java/app/passwordstore/ui/crypto/DecryptActivity.kt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app') 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() if (!entry.password.isNullOrBlank()) { items.add(FieldItem.createPasswordField(entry.password!!)) + if (settings.getBoolean(PreferenceKeys.COPY_ON_DECRYPT, false)) { + copyPasswordToClipboard(entry.password) + } } if (entry.hasTotp()) { -- cgit v1.2.3