diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-12-02 10:47:11 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-12-02 10:47:11 +0000 |
commit | 805017233b144101e6e1f814162508a815a4410a (patch) | |
tree | 90932e949e0820a24246d222a23b01cece0bc2a9 /app/src/main/res | |
parent | 58a19c9ad1e5e358cc0babf5b4812d473706ef00 (diff) | |
download | infinity-for-reddit-805017233b144101e6e1f814162508a815a4410a.tar infinity-for-reddit-805017233b144101e6e1f814162508a815a4410a.tar.gz infinity-for-reddit-805017233b144101e6e1f814162508a815a4410a.tar.bz2 infinity-for-reddit-805017233b144101e6e1f814162508a815a4410a.tar.lz infinity-for-reddit-805017233b144101e6e1f814162508a815a4410a.tar.xz infinity-for-reddit-805017233b144101e6e1f814162508a815a4410a.tar.zst infinity-for-reddit-805017233b144101e6e1f814162508a815a4410a.zip |
Add an option to disable search history.
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/activity_search.xml | 6 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 1 | ||||
-rw-r--r-- | app/src/main/res/xml/miscellaneous_preferences.xml | 6 |
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" |