Search in sources :

Example 1 with SearchResultListAdapter

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);
}
Also used : SearchResultListAdapter(com.frostwire.android.gui.adapters.SearchResultListAdapter) TorrentCrawledSearchResult(com.frostwire.search.torrent.TorrentCrawledSearchResult) HttpSearchResult(com.frostwire.search.HttpSearchResult) TorrentSearchResult(com.frostwire.search.torrent.TorrentSearchResult) FileSearchResult(com.frostwire.search.FileSearchResult) AbstractTorrentSearchResult(com.frostwire.search.torrent.AbstractTorrentSearchResult) TorrentPromotionSearchResult(com.frostwire.frostclick.TorrentPromotionSearchResult) HttpSlideSearchResult(com.frostwire.android.gui.transfers.HttpSlideSearchResult) SearchResult(com.frostwire.search.SearchResult) YouTubeSearchResult(com.frostwire.search.youtube.YouTubeSearchResult)

Aggregations

SearchResultListAdapter (com.frostwire.android.gui.adapters.SearchResultListAdapter)1 HttpSlideSearchResult (com.frostwire.android.gui.transfers.HttpSlideSearchResult)1 TorrentPromotionSearchResult (com.frostwire.frostclick.TorrentPromotionSearchResult)1 FileSearchResult (com.frostwire.search.FileSearchResult)1 HttpSearchResult (com.frostwire.search.HttpSearchResult)1 SearchResult (com.frostwire.search.SearchResult)1 AbstractTorrentSearchResult (com.frostwire.search.torrent.AbstractTorrentSearchResult)1 TorrentCrawledSearchResult (com.frostwire.search.torrent.TorrentCrawledSearchResult)1 TorrentSearchResult (com.frostwire.search.torrent.TorrentSearchResult)1 YouTubeSearchResult (com.frostwire.search.youtube.YouTubeSearchResult)1