Add 'no result' text to unmatched search results
This commit is contained in:
parent
88516d29ca
commit
3863a5d190
|
@ -182,6 +182,9 @@ public class SearchFragment extends ListFragment {
|
||||||
}
|
}
|
||||||
searchAdapter.notifyDataSetChanged();
|
searchAdapter.notifyDataSetChanged();
|
||||||
setListShown(true);
|
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() {
|
private final SearchlistAdapter.ItemAccess itemAccess = new SearchlistAdapter.ItemAccess() {
|
||||||
|
|
|
@ -421,6 +421,7 @@
|
||||||
<string name="search_status_no_results">No results were found</string>
|
<string name="search_status_no_results">No results were found</string>
|
||||||
<string name="search_label">Search</string>
|
<string name="search_label">Search</string>
|
||||||
<string name="found_in_title_label">Found in title</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 -->
|
<!-- 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>
|
<string name="opml_import_txtv_button_lable">OPML files allow you to move your podcasts from one podcatcher to another.</string>
|
||||||
|
|
Loading…
Reference in New Issue