fix(android): tableview content update fix #14169
Closed
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.
Issue
A user reported an issue on Slack that a label inside a tableview is not updating when setting a new value.
The event fix in #13826 seems to be the culprit. While it fixed the event issue it introduced the label update issue.
Solution
After a few tests it looks like we only have to set/update the parent IF it already had one (when a user reassigns the data) and not if it stays the same data (just updating the label).
I've added a simple null check and update only if there is already a parent. This way both tests (event and label) work fine:
Test 1:
see #13826 for more details
Test 2
--
Test 3
Currently tested by a Slack user: Feedback was: it's working