Advertisement
Dhaval2404

kechukwu Eze SO

Nov 4th, 2015
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. public class CustomListAdapter extends BaseAdapter {
  2. //Add Below Method
  3. public void reloadData(){
  4. this.originalMovieList = new ArrayList<Movie>(movieItems);
  5. notifyDataSetChanged();
  6. }
  7. }
  8.  
  9. In your MainActivity Replace adapter.notifyDataSetChanged(); with adapter.reloadData();
  10. Don't Replace your notifyDataSetChanged(); of CustomListAdapter with adapter.reloadData();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement