Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Possible extra header, and crash in sample app. #5

Open
LossyDragon opened this issue May 23, 2019 · 1 comment
Open

Possible extra header, and crash in sample app. #5

LossyDragon opened this issue May 23, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@LossyDragon
Copy link

LossyDragon commented May 23, 2019

Hello,

I was playing around with the sample app you've provided and I noticed a quirk with the top header, along with a crash.

The first issue might be related to #4, but I did not see a full on extra header. Gif shown below.

https://i.imgur.com/BW2NiG9.gif

The second issue is the crash. Playing with the sample app, if you go a little crazy scrolling up and down, the following crash happens.

2019-05-22 19:59:58.346 27441-27441/com.shuhart.stickyheader.sample E/AndroidRuntime: FATAL EXCEPTION: main Process: com.shuhart.stickyheader.sample, PID: 27441 java.lang.ArrayIndexOutOfBoundsException: length=33; index=-1 at java.util.ArrayList.get(ArrayList.java:439) at com.shuhart.stickyheader.sample.SectionAdapter.getHeaderPositionForItem(SectionAdapter.java:53) at com.shuhart.stickyheader.StickyHeaderItemDecorator.onDrawOver(StickyHeaderItemDecorator.java:81) at android.support.v7.widget.RecyclerView.draw(RecyclerView.java:4017) at android.view.View.updateDisplayListIfDirty(View.java:19082) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4317) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4290) at android.view.View.updateDisplayListIfDirty(View.java:19042) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4317) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4290) at android.view.View.updateDisplayListIfDirty(View.java:19042) <Repeats many more times>

@shuhart shuhart self-assigned this May 28, 2019
@shuhart shuhart added the bug Something isn't working label May 28, 2019
@andreimesina
Copy link

Hello :) Any updates on this issue? I also caught this in my app and had the same stack trace @shuhart

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants