Created
June 7, 2016 21:59
-
-
Save biodunalfet/ec043b9480a6ea3586308eb2f8fce433 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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