diff --git a/app/src/main/java/app/passwordstore/ui/settings/PGPSettings.kt b/app/src/main/java/app/passwordstore/ui/settings/PGPSettings.kt
index c5625612..e2b7e5a8 100644
--- a/app/src/main/java/app/passwordstore/ui/settings/PGPSettings.kt
+++ b/app/src/main/java/app/passwordstore/ui/settings/PGPSettings.kt
@@ -8,6 +8,7 @@ package app.passwordstore.ui.settings
import androidx.fragment.app.FragmentActivity
import app.passwordstore.R
import app.passwordstore.ui.pgp.PGPKeyListActivity
+import app.passwordstore.util.auth.BiometricAuthenticator
import app.passwordstore.util.extensions.launchActivity
import app.passwordstore.util.features.Feature
import app.passwordstore.util.settings.PreferenceKeys
@@ -33,6 +34,7 @@ class PGPSettings(private val activity: FragmentActivity) : SettingsProvider {
persistent = true
}
switch(Feature.EnablePGPPassphraseCache.configKey) {
+ enabled = BiometricAuthenticator.canAuthenticate(activity)
titleRes = R.string.pref_passphrase_cache_title
summaryRes = R.string.pref_passphrase_cache_summary
defaultValue = false
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index deb80de3..21ad8845 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -136,7 +136,7 @@
Key manager
Encrypt in ASCII armor mode
Enable passphrase caching
- WARNING: this feature is functional but very experimental.
+ WARNING: this feature is functional but very experimental. Requires an active screen lock.
Generate Password