Skip to content

Instantly share code, notes, and snippets.

@biodunalfet
Created June 7, 2016 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save biodunalfet/ec043b9480a6ea3586308eb2f8fce433 to your computer and use it in GitHub Desktop.
Save biodunalfet/ec043b9480a6ea3586308eb2f8fce433 to your computer and use it in GitHub Desktop.
if (person.getFriends().length != 0){
//is view expanded?
if (person.isChildrenVisible()){
person.setChildrenVisible(false);
Friend[] friends = person.getFriends();
for (int i = id + 1; i < (id + 1 + friends.length); i++){
general.remove(id+1);
}
Log.d("general size is ", general.size()+"");
recyclerAdapter.notifyItemRangeRemoved(id + 1, friends.length);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment