From 805017233b144101e6e1f814162508a815a4410a Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Wed, 2 Dec 2020 18:47:11 +0800 Subject: Add an option to disable search history. --- app/src/main/res/layout/activity_search.xml | 6 ++++-- app/src/main/res/values/strings.xml | 1 + app/src/main/res/xml/miscellaneous_preferences.xml | 6 ++++++ 3 files changed, 11 insertions(+), 2 deletions(-) (limited to 'app/src/main/res') 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 @@ + android:layout_height="1dp" + android:visibility="gone" /> + android:layout_height="wrap_content" + android:visibility="gone" /> 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 @@ Swipe Right Not applicable to post feed with more than 1 column or post detail. Language + Enable Search History Cannot get the link 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" /> + +