summaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/values/arrays.xml10
-rw-r--r--app/src/main/res/values/strings.xml4
-rw-r--r--app/src/main/res/xml/preference.xml8
3 files changed, 22 insertions, 0 deletions
diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml
index 36037083..44698c41 100644
--- a/app/src/main/res/values/arrays.xml
+++ b/app/src/main/res/values/arrays.xml
@@ -8,4 +8,14 @@
<item>ssh://</item>
<item>https://</item>
</string-array>
+ <string-array name="sort_order_entries">
+ <item>@string/pref_folder_first_sort_order</item>
+ <item>@string/pref_file_first_sort_order</item>
+ <item>@string/pref_type_independent_sort_order</item>
+ </string-array>
+ <string-array name="sort_order_values">
+ <item>FOLDER_FIRST</item>
+ <item>FILE_FIRST</item>
+ <item>INDEPENDENT</item>
+ </string-array>
</resources> \ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 1d9422bb..96e028e5 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -123,6 +123,10 @@
<string name="ssh_key_error_dialog_text">Message : \n</string>
<string name="pref_recursive_filter">Recursive filtering</string>
<string name="pref_recursive_filter_hint">Recursively find passwords of the current directory.</string>
+ <string name="pref_sort_order_title">Password sort order</string>
+ <string name="pref_folder_first_sort_order">Folders First</string>
+ <string name="pref_file_first_sort_order">Files First</string>
+ <string name="pref_type_independent_sort_order">Type Independent</string>
<string name="pref_autofill_title">Autofill</string>
<string name="pref_autofill_enable_title">Enable autofill</string>
<string name="pref_autofill_enable_msg">Tap OK to go to Accessibility settings. There, tap Password Store under Services then tap the switch in the top right to turn it on or off.</string>
diff --git a/app/src/main/res/xml/preference.xml b/app/src/main/res/xml/preference.xml
index 23e68577..e232c6e1 100644
--- a/app/src/main/res/xml/preference.xml
+++ b/app/src/main/res/xml/preference.xml
@@ -76,6 +76,14 @@
android:key="filter_recursively"
android:summary="@string/pref_recursive_filter_hint"
android:title="@string/pref_recursive_filter" />
+ <ListPreference
+ android:title="@string/pref_sort_order_title"
+ android:defaultValue="FOLDER_FIRST"
+ android:key="sort_order"
+ android:entries="@array/sort_order_entries"
+ android:entryValues="@array/sort_order_values"
+ android:persistent="true"
+ />
</PreferenceCategory>
<PreferenceCategory android:title="@string/pref_autofill_title">