private void expandAlbums() { albumAdapter.clear(); for (MusicDirectory.Entry album : searchResult.getAlbums()) { albumAdapter.add(album); } albumAdapter.notifyDataSetChanged(); mergeAdapter.removeAdapter(moreAlbumsAdapter); mergeAdapter.notifyDataSetChanged(); }
private void expandSongs() { songAdapter.clear(); for (MusicDirectory.Entry song : searchResult.getSongs()) { songAdapter.add(song); } songAdapter.notifyDataSetChanged(); mergeAdapter.removeAdapter(moreSongsAdapter); mergeAdapter.notifyDataSetChanged(); }
private void expandArtists() { artistAdapter.clear(); for (Artist artist : searchResult.getArtists()) { artistAdapter.add(artist); } artistAdapter.notifyDataSetChanged(); mergeAdapter.removeAdapter(moreArtistsAdapter); mergeAdapter.notifyDataSetChanged(); }