TonicArtos / StickyGridHeaders

This project has been superseded by SuperSLiM, a layout manager for RecyclerView. I strongly recommend using SuperSLiM and not StickyGridHeaders.
http://tonicartos.com
Apache License 2.0
1.47k stars 441 forks source link

AdapterView.getItemAtPosition() #81

Closed NicolasSiver closed 6 years ago

NicolasSiver commented 10 years ago

Works incorrectly. In most cases it returns null, because code assumes it's a header. Check 328 line code in StickyGridHeadersBaseAdapterWrapper. Code will return Header type for zero position.

NicolasSiver commented 10 years ago

Easy fix:

    @Override
    public Object getItem(int position) throws ArrayIndexOutOfBoundsException {
        return mDelegate.getItem(position);
    }
jam01 commented 9 years ago

The fix you suggest is to modify the getItem in StickyGridHeadersBaseAdapterWrapper, right? Or can you override it from somewhere else?