aboutsummaryrefslogtreecommitdiff
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/menu/main_menu.xml2
-rw-r--r--app/src/main/res/values/strings.xml4
-rw-r--r--app/src/main/res/xml/preference.xml10
3 files changed, 15 insertions, 1 deletions
diff --git a/app/src/main/res/menu/main_menu.xml b/app/src/main/res/menu/main_menu.xml
index 85a2219f..2e126d33 100644
--- a/app/src/main/res/menu/main_menu.xml
+++ b/app/src/main/res/menu/main_menu.xml
@@ -6,7 +6,7 @@
<item android:id="@+id/action_search"
android:title="@string/action_search"
android:icon="@drawable/ic_search_white_24dp"
- pwstore:showAsAction="ifRoom|collapseActionView"
+ pwstore:showAsAction="always|collapseActionView"
pwstore:actionViewClass="androidx.appcompat.widget.SearchView" />
<!--<item android:id="@+id/menu_add_category"-->
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index c1827ac9..ae8ec622 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -281,4 +281,8 @@
<string name="pref_show_hidden_summary">Include hidden directories in the password list</string>
<string name="title_create_folder">Create folder</string>
<string name="button_create">Create</string>
+ <string name="pref_search_on_start">Open search on start</string>
+ <string name="pref_search_on_start_hint">Open search bar when app is launched</string>
+ <string name="pref_search_from_root">Always search from root</string>
+ <string name="pref_search_from_root_hint">Search from root of store regardless of currently open directory</string>
</resources>
diff --git a/app/src/main/res/xml/preference.xml b/app/src/main/res/xml/preference.xml
index be6b49d6..dfbb44a4 100644
--- a/app/src/main/res/xml/preference.xml
+++ b/app/src/main/res/xml/preference.xml
@@ -82,6 +82,16 @@
android:key="filter_recursively"
android:summary="@string/pref_recursive_filter_hint"
android:title="@string/pref_recursive_filter" />
+ <androidx.preference.CheckBoxPreference
+ android:defaultValue="false"
+ android:key="search_on_start"
+ android:summary="@string/pref_search_on_start_hint"
+ android:title="@string/pref_search_on_start" />
+ <androidx.preference.CheckBoxPreference
+ android:defaultValue="false"
+ android:key="search_from_root"
+ android:summary="@string/pref_search_from_root_hint"
+ android:title="@string/pref_search_from_root" />
<androidx.preference.ListPreference
android:title="@string/pref_sort_order_title"
android:defaultValue="FOLDER_FIRST"