Repository navigation
[Android] Update buffers if an item is removed from a ListView - #392
Merged
Merged
Conversation
MatFillion
reviewed
Nov 27, 2018
| // An INotifyCollectionChanged operation is triggering an animated update of the list. | ||
| ScrapLayout(recycler, availableBreadth); | ||
| // We actually need to update the buffer in this particular case to refresh the next item displayed. | ||
| // Since we don't scrap all views as forbidden below, we should be able to do that without weird behavior |
Contributor
There was a problem hiding this comment.
define weird behaviour?
Contributor
Author
There was a problem hiding this comment.
It is actually not defined. If you take a look just below (20 lines further), @davidjohnoliver added a comment with this warning of weird behavior. But I have no clue what this is, we should ask him when he comes back. I didn't see anything strange from my tests.
MatFillion
approved these changes
Nov 27, 2018
YGuerin
force-pushed
the
dev/yogu/android.listview.removing.buffers
branch
from
November 27, 2018 17:33
c14cd96 to
074b5e6
Compare
kazo0
pushed a commit
to kazo0/uno
that referenced
this pull request
Mar 6, 2026
…n-update feature: Standardize Animations unoplatform#391
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub Issue (If applicable): #
PR Type
What kind of change does this PR introduce?
What is the current behavior?
If an item is removed from a ListView, the two next fetched item are the same one (duplicated)
What is the new behavior?
Buffers are updated and no longer duplicate item
PR Checklist
Please check if your PR fulfills the following requirements:
Other information
Some notes provided by David Oliver recommend not to update buffers in the same cycle that all views are srapped. This is not the case here since we remove just one but if weird behavior is happenning with the ListView, try to remove this modification first.
Internal Issue (If applicable):
https://nventive.visualstudio.com/Umbrella/_workitems/edit/138117