forked from mozilla-mobile/fenix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For mozilla-mobile#26511: Parallelize work for setting the wallpaper
Split loading the bitmap from storage and actually setting it in two operations with one that can run in parallel with onCreateView for HomeFragment and one that can be used serially on the main thread to actually set the wallpaper. This seems like the best compromise to ensure that everytime the homescreen is shown it will have the wallpaper set but does affect the performance - there is a delay in showing HomeFragment to account for waiting for the wallpaper to be set. In testing the new delay seems close to the one from the initial wallpapers implementation. See more in mozilla-mobile#26794.
- Loading branch information
Showing
3 changed files
with
178 additions
and
115 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
Oops, something went wrong.