Fix bug where bookmarks bar prompt does not hide bar #3553
Merged
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.
Task/Issue URL: https://app.asana.com/0/1201048563534612/1208767244367092/f
Tech Design URL:
CC:
Description:
We currently have a bug when the ’Show Bookmarks Bar` prompt is shown, if the user selects the hide option. The bar is visible.
The problem is that when showing the prompt, we update the visibility of the bookmarks bar but without updating its value, then when the user selects to hide or dismiss the prompt, given that the old value is false and the new values is false, the subscriber discards the new value and does not update the UI.
Removing the
removeDuplicates()
fixes the issue. I do not think there are problems removing that call, updating the visibility is something that happens on user interaction, we will have an ‘extra’ call if the user taps againg the same setting but I do not forsee a concern (open to opinions).Steps to test this PR:
./clean-app.sh debug
)Definition of Done:
—
Internal references:
Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation