summaryrefslogtreecommitdiffstats
path: root/app/src/main/res/xml/preference.xml
diff options
context:
space:
mode:
authorFabian Henneke <FabianHenneke@users.noreply.github.com>2020-03-25 18:13:04 +0100
committerGitHub <noreply@github.com>2020-03-25 18:13:04 +0100
commitfde16c60f4ce5d57a0c7d5a0186dcd532a23f0f0 (patch)
tree8a72bcc077590707c47017548cc8adc3eae6e0d1 /app/src/main/res/xml/preference.xml
parent973e023dda3caf17fe024b9ba7f1872c5527e654 (diff)
downloadHardenedPass-fde16c60f4ce5d57a0c7d5a0186dcd532a23f0f0.tar.gz
HardenedPass-fde16c60f4ce5d57a0c7d5a0186dcd532a23f0f0.zip
Make preferred directory structure for Autofill configurable (#660)
Some users keep their password files in a directory structure such as: /example.org/john@doe.org.gpg while others prefer the style: /example.org/john@doe.org/password.gpg This commit adds a setting that allows to switch between the two. All Autofill operations, such as search, match, generate and save, respect this setting. Note: The first style seems to be the most widely used and is therefore kept as the default. The second style is mentioned on the official Pass website at: https://www.passwordstore.org/#organization
Diffstat (limited to 'app/src/main/res/xml/preference.xml')
-rw-r--r--app/src/main/res/xml/preference.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/src/main/res/xml/preference.xml b/app/src/main/res/xml/preference.xml
index 08f23787..b1c5e4d0 100644
--- a/app/src/main/res/xml/preference.xml
+++ b/app/src/main/res/xml/preference.xml
@@ -6,6 +6,13 @@
app:defaultValue="true"
app:key="autofill_enable"
app:title="@string/pref_autofill_enable_title"/>
+ <androidx.preference.ListPreference
+ app:defaultValue="file"
+ app:entries="@array/oreo_autofill_directory_structure_entries"
+ app:entryValues="@array/oreo_autofill_directory_structure_values"
+ app:key="oreo_autofill_directory_structure"
+ app:title="@string/oreo_autofill_preference_directory_structure"
+ app:useSimpleSummaryProvider="true" />
<androidx.preference.Preference
app:key="autofill_apps"
app:title="@string/pref_autofill_apps_title"/>