fix: add warning to passphrase cache feature

This commit is contained in:
Harsh Shandilya 2023-05-09 00:13:09 +05:30
parent f3fc246c58
commit 39c7b0cb7b
No known key found for this signature in database
2 changed files with 4 additions and 2 deletions

View file

@ -33,7 +33,8 @@ class PGPSettings(private val activity: FragmentActivity) : SettingsProvider {
persistent = true
}
switch(Feature.EnableGPGPassphraseCache.configKey) {
titleRes = R.string.pref_title_passphrase_cache
titleRes = R.string.pref_passphrase_cache_title
summaryRes = R.string.pref_passphrase_cache_summary
defaultValue = false
}
}

View file

@ -134,6 +134,8 @@
<string name="pref_import_pgp_key_title">Import PGP key</string>
<string name="pref_pgp_key_manager_title">Key manager</string>
<string name="pref_pgp_ascii_armor_title">Encrypt in ASCII armor mode</string>
<string name="pref_passphrase_cache_title">Enable passphrase caching</string>
<string name="pref_passphrase_cache_summary">WARNING: this feature is functional but very experimental.</string>
<!-- PasswordGenerator fragment -->
<string name="pwgen_title">Generate Password</string>
@ -371,5 +373,4 @@
<string name="pgp_key_manager_no_keys_guidance">Import a key using the add button below</string>
<string name="no_keys_imported_dialog_title">No keys imported</string>
<string name="no_keys_imported_dialog_message">There are no PGP keys imported in the app yet, press the button below to pick a key file</string>
<string name="pref_title_passphrase_cache">Enable passphrase caching</string>
</resources>