Wait for system decor windows on all displays during boot
To prevent from showing empty content on some displays temporarily, wait for displays which support system decorations that have the expected window types to be drawn. Also correct the conditions for waiting: - isVisibleLw and !isDrawnLw are contradicted because they both check mHasSurface. - TYPE_APPLICATION must belong to an activity so it is more reasonable to check BASE_APPLICATION. Bug: 117597389 Test: atest DisplayContentTests \ #testShouldWaitForSystemDecorWindowsOnBoot_OnSecondaryDisplay Test: manual enable "Simulate secondary displays" in dev options. Reboot and check no "BOOT TIMEOUT" in log. Change-Id: Ie0890cd006da74f290ecc6cbcf1064a0b26de574
Loading
Please register or sign in to comment