-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash on FrameLayout layoutChildren #23
Comments
What line of code is being run at FrameLayout:line#405? (Not matching with the source I have, so just curious). |
I guess FrameLayout code is different depending on which android version that user has ?
You can see on this screenshot that it's kind of specific for every android version: This started to happen once I wrapped my recycler view with framelayout, but I can't reproduce it. |
Ok, I was able to reproduce it. Basically if the currently attached sticky header is removed from the dataset, this happens. Looking into a fix. |
Fixed in 53e0449 (Version 0.3.4) I would advise a reasonably thorough testing before pushing this out into an update, but this issue should be resolved. I think there is room for improvement in the way I'm holding onto header state, but this was a pretty big flaw so I wanted to get a preliminary fix out ASAP. Thanks for reporting the issue! |
issue still there |
Issue can still be reproduced on v0.4.9 |
As a temporary hack you can use your own HackyFrameLayout class and catch NullPointerException inside the onLayout method. |
Is there a reproducible set of actions I can try to recreate this issue or are you just seeing it in logs? |
@bgogetap
|
Is there any update on this bug? @bgogetap thanks! |
No update. I'd be happy to look into it if there is a repro I can examine, but it's not something I can blindly dig into right now. |
Recently I wrapped my RecyclerView with FrameLayout so I can use StickyHeaders. Since then from time to time I notice this strange crash. I extracted the log from Fabric. I can't reproduce it but I it could it's related to onNotifyDataSetChanged when data goes from N to 0 items and list was scrolled to the half height.
Do you know what is going on here ?
The text was updated successfully, but these errors were encountered: