Delay the creation of WallpaperDefaultDisplayInfo in WallpaperController
Issue: DisplayManagerInternal.getPossibleDisplayInfo returns an empty set DisplayInfo during the initialization of WindowManagerService. This results in an empty FoldableOrientations affecting the wallpaper crop logic.
Test: manually print out the FoldableOrientations in WallpaperController#updateWallpaperOffset on a foldable to confirm the set is not empty.
Flag: EXEMPTED bug fix
Bug: 402306483
Change-Id: I162fc97bfd3aefc276e43b5aef1a2497d1134d0b
1 file changed