Extracted preference search string resources

This commit is contained in:
ByteHamster 2019-08-30 11:37:52 +02:00
parent f35286f1dc
commit 4e80388380
3 changed files with 10 additions and 3 deletions

View File

@ -172,7 +172,7 @@ dependencies {
implementation "com.github.AntennaPod:AntennaPod-AudioPlayer:$audioPlayerVersion" implementation "com.github.AntennaPod:AntennaPod-AudioPlayer:$audioPlayerVersion"
implementation 'com.github.mfietz:fyydlin:v0.4.2' implementation 'com.github.mfietz:fyydlin:v0.4.2'
implementation 'com.github.ByteHamster:SearchPreference:v1.2.6' implementation 'com.github.ByteHamster:SearchPreference:v1.3.0'
implementation "org.awaitility:awaitility:$awaitilityVersion" implementation "org.awaitility:awaitility:$awaitilityVersion"
androidTestImplementation 'com.nanohttpd:nanohttpd-webserver:2.1.1' androidTestImplementation 'com.nanohttpd:nanohttpd-webserver:2.1.1'

View File

@ -1,9 +1,13 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen <PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"> xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:search="http://schemas.android.com/apk/res-auto">
<com.bytehamster.lib.preferencesearch.SearchPreference <com.bytehamster.lib.preferencesearch.SearchPreference
android:key="searchPreference" /> android:key="searchPreference"
search:textHint="@string/preference_search_hint"
search:textNoResults="@string/preference_search_no_results"
search:textClearHistory="@string/preference_search_clear_history" />
<Preference <Preference
android:key="prefScreenInterface" android:key="prefScreenInterface"

View File

@ -353,6 +353,9 @@
<string name="external_elements">External elements</string> <string name="external_elements">External elements</string>
<string name="interruptions">Interruptions</string> <string name="interruptions">Interruptions</string>
<string name="playback_control">Playback control</string> <string name="playback_control">Playback control</string>
<string name="preference_search_hint">Search…</string>
<string name="preference_search_no_results">No results</string>
<string name="preference_search_clear_history">Clear history</string>
<string name="media_player">Media player</string> <string name="media_player">Media player</string>
<string name="pref_episode_cleanup_title">Episode Cleanup</string> <string name="pref_episode_cleanup_title">Episode Cleanup</string>
<string name="pref_episode_cleanup_summary">Episodes that aren\'t in the queue and aren\'t favorites should be eligible for removal if Auto Download needs space for new episodes</string> <string name="pref_episode_cleanup_summary">Episodes that aren\'t in the queue and aren\'t favorites should be eligible for removal if Auto Download needs space for new episodes</string>