Closed jaumard closed 7 years ago
This is a bug related to items not keeping their order (layout index) in the LayoutManager and trying to restore scroll position. I've added a workaround and a itemOrderIsStable
flag that must be set to true to be restore scroll position.
Should be fixed in version 2.0.1
.
Nice that was quick fixes thanks ! :D I'll try to test this today ! Does this mean that in my case it's not possible to restore the scroll position ? My understanding of how it should work is you take the first one visible and when you try restore the position you "just" manage to show the first one that was visible on the screen and nothing more. Like this the should be ok for all rotation even if the number of span is not the same in different rotation.
No more crash ! Perfect now :)
Don't know if it's related to your code or mine as I don't manage to reproduce it on the sample app but here is what happen to me.
I load items from network and put them into my adapter, no problem they appear, I rotate the screen it goes in landscape without problem and go back too.
But if in landscape I scroll down the list and then want to go back to portrait then it crash with :
I made a quick video to show you the problem. Any idea ?
device-2017-10-31-175406.mp4.zip