Add 'no result' text to unmatched search results

This commit is contained in:
orelogo 2016-07-12 15:39:58 -04:00
parent 88516d29ca
commit 3863a5d190
2 changed files with 4 additions and 0 deletions

View File

@ -182,6 +182,9 @@ public class SearchFragment extends ListFragment {
}
searchAdapter.notifyDataSetChanged();
setListShown(true);
String query = getArguments().getString(ARG_QUERY);
setEmptyText(getString(R.string.no_results_for_query) + " \"" + query + "\"");
}
private final SearchlistAdapter.ItemAccess itemAccess = new SearchlistAdapter.ItemAccess() {

View File

@ -421,6 +421,7 @@
<string name="search_status_no_results">No results were found</string>
<string name="search_label">Search</string>
<string name="found_in_title_label">Found in title</string>
<string name="no_results_for_query">No results were found for</string>
<!-- OPML import and export -->
<string name="opml_import_txtv_button_lable">OPML files allow you to move your podcasts from one podcatcher to another.</string>