Allow choosing which types of search suggestions to show
local, remote, both, none Replacing the old on-off setting
This commit is contained in:
parent
2f78a6cacb
commit
acf56fce82
9 changed files with 159 additions and 98 deletions
|
|
@ -227,6 +227,16 @@
|
|||
|
||||
<!-- Content & History -->
|
||||
<string name="show_search_suggestions_key" translatable="false">show_search_suggestions</string>
|
||||
<string name="show_local_search_suggestions_key" translatable="false">show_local_search_suggestions</string>
|
||||
<string name="show_remote_search_suggestions_key" translatable="false">show_remote_search_suggestions</string>
|
||||
<string-array name="show_search_suggestions_value_list" translatable="false">
|
||||
<item>@string/show_local_search_suggestions_key</item>
|
||||
<item>@string/show_remote_search_suggestions_key</item>
|
||||
</string-array>
|
||||
<string-array name="show_search_suggestions_description_list" translatable="false">
|
||||
<item>@string/local_search_suggestions</item>
|
||||
<item>@string/remote_search_suggestions</item>
|
||||
</string-array>
|
||||
<string name="show_play_with_kodi_key" translatable="false">show_play_with_kodi</string>
|
||||
<string name="show_comments_key" translatable="false">show_comments</string>
|
||||
<string name="show_next_video_key" translatable="false">show_next_video</string>
|
||||
|
|
|
|||
|
|
@ -116,7 +116,9 @@
|
|||
<string name="player_gesture_controls_title">Player gesture controls</string>
|
||||
<string name="player_gesture_controls_summary">Use gestures to control player brightness and volume</string>
|
||||
<string name="show_search_suggestions_title">Search suggestions</string>
|
||||
<string name="show_search_suggestions_summary">Show suggestions when searching</string>
|
||||
<string name="show_search_suggestions_summary">Choose the suggestions to show when searching</string>
|
||||
<string name="local_search_suggestions">Local search suggestions</string>
|
||||
<string name="remote_search_suggestions">Remote search suggestions</string>
|
||||
<string name="enable_search_history_title">Search history</string>
|
||||
<string name="enable_search_history_summary">Store search queries locally</string>
|
||||
<string name="enable_watch_history_title">Watch history</string>
|
||||
|
|
|
|||
|
|
@ -65,11 +65,13 @@
|
|||
app:singleLineTitle="false"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<SwitchPreferenceCompat
|
||||
android:defaultValue="true"
|
||||
<MultiSelectListPreference
|
||||
android:key="@string/show_search_suggestions_key"
|
||||
android:summary="@string/show_search_suggestions_summary"
|
||||
android:title="@string/show_search_suggestions_title"
|
||||
android:entries="@array/show_search_suggestions_description_list"
|
||||
android:entryValues="@array/show_search_suggestions_value_list"
|
||||
android:defaultValue="@array/show_search_suggestions_value_list"
|
||||
app:singleLineTitle="false"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue