Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class CustomListAdapter extends BaseAdapter {
- //Add Below Method
- public void reloadData(){
- this.originalMovieList = new ArrayList<Movie>(movieItems);
- notifyDataSetChanged();
- }
- }
- In your MainActivity Replace adapter.notifyDataSetChanged(); with adapter.reloadData();
- Don't Replace your notifyDataSetChanged(); of CustomListAdapter with adapter.reloadData();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement