forked from mozilla-mobile/fenix
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue mozilla-mobile#21236: Fixes empty tray visibility logic
This is a bug we noticed after landing search term grouping. An adapter can submit an empty list of items to the `ConcatAdapter` early. This has the side-effect of triggering our `observeFirstInsert` too soon and therefore updating the visibility to show the empty tray placeholder and never switches back. Our solution is to keep a constant observer on the adapter so we can perform the visibility check on every insert/remove. Co-authored-by: Roger Yang <royang@mozilla.com>
- Loading branch information
1 parent
6ac10d5
commit 2c84385
Showing
4 changed files
with
71 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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