public void appendResults(List<SearchResult> searchResults){
  mSearchResults.addAll(searchResults);
  for (  SearchResult searchResult : searchResults) {
    final ProviderIdentifier id=searchResult.getIdentifier();
    final List<String> songs=searchResult.getSongsList();
    final List<String> artists=searchResult.getArtistList();
    final List<String> playlists=searchResult.getPlaylistList();
    final List<String> albums=searchResult.getAlbumsList();
    for (    String song : songs) {
      SearchEntry entry=new SearchEntry(song,id);
      if (!mAllSongs.contains(entry)) {
        mAllSongs.add(entry);
      }
    }
    for (    String artist : artists) {
      SearchEntry entry=new SearchEntry(artist,id);
      if (!mAllArtists.contains(entry)) {
        mAllArtists.add(entry);
      }
    }
    for (    String playlist : playlists) {
      SearchEntry entry=new SearchEntry(playlist,id);
      if (!mAllPlaylists.contains(entry)) {
        mAllPlaylists.add(entry);
      }
    }
    for (    String album : albums) {
      SearchEntry entry=new SearchEntry(album,id);
      if (!mAllAlbums.contains(entry)) {
        mAllAlbums.add(entry);
      }
    }
  }
  computeResultsList();
}

public void appendResults ( List < SearchResult > searchResults ) { mSearchResults . addAll ( searchResults ) ; for ( SearchResult searchResult : searchResults ) { final ProviderIdentifier id = searchResult . getIdentifier ( ) ; final List < String > songs = searchResult . getSongsList ( ) ; final List < String > artists = searchResult . getArtistList ( ) ; final List < String > playlists = searchResult . getPlaylistList ( ) ; final List < String > albums = searchResult . getAlbumsList ( ) ; for ( String song : songs ) { SearchEntry entry = new SearchEntry ( song , id ) ; if ( ! mAllSongs . contains ( entry ) ) { mAllSongs . add ( entry ) ; } } for ( String artist : artists ) { SearchEntry entry = new SearchEntry ( artist , id ) ; if ( ! mAllArtists . contains ( entry ) ) { mAllArtists . add ( entry ) ; } } for ( String playlist : playlists ) { SearchEntry entry = new SearchEntry ( playlist , id ) ; if ( ! mAllPlaylists . contains ( entry ) ) { mAllPlaylists . add ( entry ) ; } } for ( String album : albums ) { SearchEntry entry = new SearchEntry ( album , id ) ; if ( ! mAllAlbums . contains ( entry ) ) { mAllAlbums . add ( entry ) ; } } } computeResultsList ( ) ; }
add the results to the current adapter ' s results
