From c78a06db286ced701e25c4a343d4c501e1755c2b Mon Sep 17 00:00:00 2001 From: Craig Mautner Date: Fri, 1 Nov 2013 16:12:14 -0700 Subject: [PATCH] Layout hidden windows on Configuration change. Apply the test for configuration change to all windows. A year ago this was the test but CL ag/247731 which fixed b/7428221 limited the test to just Keyguard windows. A week later CL ag/248223 which fixed b/7444971 applied the test to Wallpaper as well. Then two days after that CL ag/249762 which fixed b/7453222 reverted the wallpaper. This fix reverts the Keyguard qualification and restores the test to all windows. This fix has been tested against the repro steps for all three bugs above. In addition this fixes bug 11033407. The fix for the bug is described in the bug. Change-Id: Ie0f4c7cd4697c1689c4f331d572359cf7ce934cf --- services/java/com/android/server/wm/WindowManagerService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/java/com/android/server/wm/WindowManagerService.java b/services/java/com/android/server/wm/WindowManagerService.java index 63e09db3ec386..a645c01cd19f8 100644 --- a/services/java/com/android/server/wm/WindowManagerService.java +++ b/services/java/com/android/server/wm/WindowManagerService.java @@ -8269,7 +8269,7 @@ public class WindowManagerService extends IWindowManager.Stub // windows, since that means "perform layout as normal, // just don't display"). if (!gone || !win.mHaveFrame || win.mLayoutNeeded - || (win.mAttrs.type == TYPE_KEYGUARD && win.isConfigChanged()) + || win.isConfigChanged() || win.mAttrs.type == TYPE_UNIVERSE_BACKGROUND) { if (!win.mLayoutAttached) { if (initial) {