-
Notifications
You must be signed in to change notification settings - Fork 554
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
Duplicated headers appears in list during addItems first time #146
Comments
Hi @yamelkaya, I am pretty sure you call I can improve the call of that method to avoid people call it twice with a warning. |
Hi @davideas, I've searched over the code and I am sure that I don't call
|
I overrode |
Ah Ok I understood, since you are using SNAPSHOT, the call of showing headers is made in Post due to a very recent fix (issue 142), but also my local branch is modified for a new improvement (issue 144) regarding post calls as well on So I will publish all these improvements and after should be fine with addItems at startUp. Need some time to test the What is causing the duplication to you, is that addItems displays headers because it sees it hidden, but then the post execute the |
Ok, thanks a lot for your feedback. |
I have issue with sticker header. I don't know it is same your issue or not. When I refresh RecyclerView, the sticker header show not correct: sticker 1 - 2 - 3 but it show sticker 3-2-3. I need refresh again (> 1) to it show correct or touch to position of sticker 1 to it not show. |
@mdtuyen, can you explain the exact steps to reproduce it? What do you mean when you say refresh the list, how? what you call?
To not show what? |
There are two problem in my app:
|
|
Hello, I also have a problem with duplicate headers. Using I'm calling I fixed it for now by waiting for the items to initialize the adapter, i.e |
@i-schuetz, when you compose the list to update, you should not add header items... please check documentation. |
I am not sure if it is bug or incorrect use of adapter. So, the case is following.
I use FlexibleAdapter with sticky headers.
Firstly I create adapter with empty list of items
new FlexibleAdapter(new ArrayList<ItemType>())
.After that I load items and call
addItems(0,items)
and when it happens for the 1st time each sticky header duplicated in list (see screenshot). I've checkedmItems
in adapter just afteraddItems
called and it has only single instance of each header.When I call
addItems
2nd, 3rd ... time there is no duplicates in list.So, why this problem with duplicates may occur?
The text was updated successfully, but these errors were encountered: