Skip to content

Instantly share code, notes, and snippets.

@biodunalfet
Created June 7, 2016 22:03
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/e58d4d8ff62dda5c281d02814f322ded to your computer and use it in GitHub Desktop.
Save biodunalfet/e58d4d8ff62dda5c281d02814f322ded to your computer and use it in GitHub Desktop.
else {
person.setChildrenVisible(true);
Friend[] friends = person.getFriends();
int index = 0;
for (int i = id + 1; i < (id + 1 + friends.length); i++){
general.add(i, friends[index]);
index++;
}
recyclerAdapter.notifyItemRangeInserted(id + 1, friends.length);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment