From 4e803883807137ff1f6fcb40839d3af04412cbd2 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Fri, 30 Aug 2019 11:37:52 +0200 Subject: [PATCH] Extracted preference search string resources --- app/build.gradle | 2 +- app/src/main/res/xml/preferences.xml | 8 ++++++-- core/src/main/res/values/strings.xml | 3 +++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index a97bac1b2..e4ed38f52 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -172,7 +172,7 @@ dependencies { implementation "com.github.AntennaPod:AntennaPod-AudioPlayer:$audioPlayerVersion" 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" androidTestImplementation 'com.nanohttpd:nanohttpd-webserver:2.1.1' diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml index f45847e54..6c1e470c0 100644 --- a/app/src/main/res/xml/preferences.xml +++ b/app/src/main/res/xml/preferences.xml @@ -1,9 +1,13 @@ + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:search="http://schemas.android.com/apk/res-auto"> + android:key="searchPreference" + search:textHint="@string/preference_search_hint" + search:textNoResults="@string/preference_search_no_results" + search:textClearHistory="@string/preference_search_clear_history" /> External elements Interruptions Playback control + Search… + No results + Clear history Media player Episode Cleanup Episodes that aren\'t in the queue and aren\'t favorites should be eligible for removal if Auto Download needs space for new episodes