Skip to content
This repository has been archived by the owner on Dec 1, 2017. It is now read-only.

ArrayIndexOutOfBoundsException when scroll up #268

Open
luoyuoki opened this issue Apr 21, 2016 · 0 comments
Open

ArrayIndexOutOfBoundsException when scroll up #268

luoyuoki opened this issue Apr 21, 2016 · 0 comments

Comments

@luoyuoki
Copy link

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)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant