Thumbnail changes update the tabs tray too often #7313
When we update the tabs tray, we use the
We need a better way to avoid the whole tray from updating when we have a thumbnail update.
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered:
I verified that removing the
In mozilla-mobile/fenix#11185 (comment), I mentioned we should try to use the
What changes though is the surface area of this API for the consumer to load the thumbnails where ever the caller needs.
More concretely, the
7356: Issue #7313: Use ThumbnailLoader for the TabViewHolder r=gabrielluong,boek a=jonalmeida Instead of trying to inline the thumbnail images from disk into the TabsTrayPresenter, we can load them from the `ThumbnailStorage` via the `ThumbnailLoader` and rely on the `TabsTrayPresenter` to consume new thumbnail updates only from the store. This fixes some perf issues, inconsistencies, and duplicate updates to the tabs tray. Co-authored-by: Jonathan Almeida <firstname.lastname@example.org>