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/layout/activity_search.xml6
-rw-r--r--app/src/main/res/values/strings.xml1
-rw-r--r--app/src/main/res/xml/miscellaneous_preferences.xml6
3 files changed, 11 insertions, 2 deletions
diff --git a/app/src/main/res/layout/activity_search.xml b/app/src/main/res/layout/activity_search.xml
index 972ba2af..9418ce8f 100644
--- a/app/src/main/res/layout/activity_search.xml
+++ b/app/src/main/res/layout/activity_search.xml
@@ -89,7 +89,8 @@
<View
android:id="@+id/divider_search_activity"
android:layout_width="match_parent"
- android:layout_height="1dp" />
+ android:layout_height="1dp"
+ android:visibility="gone" />
<TextView
android:id="@+id/recent_summary_text_view_search_activity"
@@ -103,7 +104,8 @@
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_view_search_activity"
android:layout_width="match_parent"
- android:layout_height="wrap_content" />
+ android:layout_height="wrap_content"
+ android:visibility="gone" />
</LinearLayout>
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index eac39901..4020537a 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -508,6 +508,7 @@
<string name="settings_swipe_action_swipe_right_title">Swipe Right</string>
<string name="settings_swipe_action_info_summary">Not applicable to post feed with more than 1 column or post detail.</string>
<string name="settings_language_title">Language</string>
+ <string name="settings_enable_search_history">Enable Search History</string>
<string name="no_link_available">Cannot get the link</string>
diff --git a/app/src/main/res/xml/miscellaneous_preferences.xml b/app/src/main/res/xml/miscellaneous_preferences.xml
index 95532c33..81a811fc 100644
--- a/app/src/main/res/xml/miscellaneous_preferences.xml
+++ b/app/src/main/res/xml/miscellaneous_preferences.xml
@@ -25,6 +25,12 @@
app:title="@string/settings_respect_subreddit_recommended_comment_sort_type_title"
app:summary="@string/settings_respect_subreddit_recommended_comment_sort_type_summary" />
+ <SwitchPreference
+ app:defaultValue="true"
+ app:key="enable_search_history"
+ app:title="@string/settings_enable_search_history"
+ app:summary="@string/only_for_logged_in_user" />
+
<ListPreference
app:defaultValue="auto"
app:entries="@array/settings_language"