Merge "Fix test of wait-for-window-on-boot if wallpaper is disabled"

This commit is contained in:
Riddle Hsu
2020-10-07 06:26:51 +00:00
committed by Android (Google) Code Review

View File

@@ -526,7 +526,8 @@ public class DisplayContentTests extends WindowTestsBase {
for (int i = 0; i < types.length; i++) {
final int type = types[i];
windows[i] = createWindow(null /* parent */, type, displayContent, "window-" + type);
windows[i].mHasSurface = false;
windows[i].setHasSurface(true);
windows[i].mWinAnimator.mDrawState = WindowStateAnimator.DRAW_PENDING;
}
return windows;
}