ArrayIndexOutOfBoundsException when scroll up
luoyuoki opened this issue · 0 comments
hi , I am using StaggeredGridLayoutManager, in order to achieve the rolling load more so added footer,when scroll last position appear footer get crash,can you advice me how to do that? thanks.
java.lang.ArrayIndexOutOfBoundsException: src.length=11 srcPos=0 dst.length=10 dstPos=0 length=11
at java.lang.System.arraycopy(Native Method)
at org.lucasr.twowayview.widget.ItemEntries.ensureSize(ItemEntries.java:57)
at org.lucasr.twowayview.widget.ItemEntries.offsetForAddition(ItemEntries.java:125)
at org.lucasr.twowayview.widget.BaseLayoutManager.offsetForAddition(BaseLayoutManager.java:229)
at org.lucasr.twowayview.widget.BaseLayoutManager.handleUpdate(BaseLayoutManager.java:294)
at org.lucasr.twowayview.widget.BaseLayoutManager.onItemsAdded(BaseLayoutManager.java:381)
at android.support.v7.widget.RecyclerView$5.dispatchUpdate(Unknown Source)
at android.support.v7.widget.RecyclerView$5.onDispatchSecondPass(Unknown Source)
at android.support.v7.widget.AdapterHelper.consumeUpdatesInOnePass(Unknown Source)
at android.support.v7.widget.RecyclerView.processAdapterUpdatesAndSetAnimationFlags(Unknown Source)
at android.support.v7.widget.RecyclerView.onMeasure(Unknown Source)