use of com.frostwire.android.gui.adapters.SearchResultListAdapter in project frostwire by frostwire.
the class SearchFragment method setupAdapter.
private void setupAdapter() {
if (adapter == null) {
adapter = new SearchResultListAdapter(getActivity()) {
@Override
protected void searchResultClicked(SearchResult sr) {
startTransfer(sr, getString(R.string.download_added_to_queue));
}
};
LocalSearchEngine.instance().setListener(new LocalSearchEngineListener(this));
}
list.setAdapter(adapter);
}
Aggregations