fitnesskim / tree-view-list-android

Automatically exported from code.google.com/p/tree-view-list-android
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Problem removing nodes from the tree using removeNodeRecursively method. #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Creating a 2 level-deep tree (node within node within node)
2.Calling removeNodeRecursively, supplying the ID of the middle node ( the one 
on level 1)

What is the expected output? What do you see instead?
Expected it to delete the node and it's children correctly

Original issue reported on code.google.com by Ami.G...@gmail.com on 29 May 2011 at 5:24

GoogleCodeExporter commented 9 years ago
Resolved. The removed node was not deleted from it's parent's children list. I 
also optimized data set changes - now the internalDataSetChanged (thus 
adapter's dataSetChange) is only called once for the whole removed subtree. 
Previously it was called for every single node removed.

Original comment by ja...@potiuk.com on 29 May 2011 at 5:40