marinat / 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

AbstractTreeViewAdapter's getItem() is improperly implemented #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
AbstractTreeViewAdapter's getItem():
    @Override
    public Object getItem(final int position) {
        return getItemId(position);
    }
casts long to Object, while it should locate the proper T and cast T to Object .

Original issue reported on code.google.com by Life.se...@gmail.com on 27 Jan 2013 at 7:09

GoogleCodeExporter commented 9 years ago
I'd replace "return getItemId(position);" with "return getTreeId(position);", 
similarly to how it's done in getItemViewType()

Original comment by Life.se...@gmail.com on 27 Jan 2013 at 7:14

GoogleCodeExporter commented 9 years ago
Fixed

Original comment by ja...@potiuk.com on 8 Sep 2013 at 12:42