From d6b473302fadaebf8328893ebb714ce65b46b893 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Tue, 18 Aug 2020 17:41:32 +0200 Subject: [PATCH] Added "powered by" text to search and suggestions --- .../antennapod/fragment/OnlineSearchFragment.java | 4 ++-- app/src/main/res/layout/fragment_itunes_search.xml | 14 ++++++++++++++ app/src/main/res/layout/quick_feed_discovery.xml | 11 +++++++++++ core/src/main/res/values/strings.xml | 3 ++- 4 files changed, 29 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/OnlineSearchFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/OnlineSearchFragment.java index 8ecb692a5..e8bd5a1e1 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/OnlineSearchFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/OnlineSearchFragment.java @@ -107,8 +107,8 @@ public class OnlineSearchFragment extends Fragment { txtvError = root.findViewById(R.id.txtvError); butRetry = root.findViewById(R.id.butRetry); txtvEmpty = root.findViewById(android.R.id.empty); - - txtvEmpty.setText(getString(R.string.search_powered_by, searchProvider.getName())); + TextView txtvPoweredBy = root.findViewById(R.id.search_powered_by); + txtvPoweredBy.setText(getString(R.string.search_powered_by, searchProvider.getName())); return root; } diff --git a/app/src/main/res/layout/fragment_itunes_search.xml b/app/src/main/res/layout/fragment_itunes_search.xml index 228bfb803..d82051867 100644 --- a/app/src/main/res/layout/fragment_itunes_search.xml +++ b/app/src/main/res/layout/fragment_itunes_search.xml @@ -36,6 +36,7 @@ android:layout_height="match_parent" android:layout_centerInParent="true" android:gravity="center" + android:visibility="gone" android:text="@string/search_status_no_results" /> + diff --git a/app/src/main/res/layout/quick_feed_discovery.xml b/app/src/main/res/layout/quick_feed_discovery.xml index a274fcdc7..b125206c1 100644 --- a/app/src/main/res/layout/quick_feed_discovery.xml +++ b/app/src/main/res/layout/quick_feed_discovery.xml @@ -62,4 +62,15 @@ android:layout_height="wrap_content"/> + + + diff --git a/core/src/main/res/values/strings.xml b/core/src/main/res/values/strings.xml index 1059a55c1..2aae544da 100644 --- a/core/src/main/res/values/strings.xml +++ b/core/src/main/res/values/strings.xml @@ -720,7 +720,8 @@ Browse gpodder.net Discover more ยป - Search powered by %1$s + Suggestions by iTunes + Results by %1$s Filter