Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 857bece2 authored by tiger_huang's avatar tiger_huang Committed by Steve Kondik
Browse files

Layout the config-changed window if it has surface

This patch fixes an issue which caused the resumed app to get the
wrong frame at first.

https://code.google.com/p/android/issues/detail?id=82242

Change-Id: I4483029326afca143e7921f3b9563da4f566d2e5
parent 865a7f83
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -8823,7 +8823,8 @@ public class WindowManagerService extends IWindowManager.Stub
            if (!gone || !win.mHaveFrame || win.mLayoutNeeded
                    || ((win.isConfigChanged() || win.setInsetsChanged()) &&
                            ((win.mAttrs.privateFlags & PRIVATE_FLAG_KEYGUARD) != 0 ||
                            win.mAppToken != null && win.mAppToken.layoutConfigChanges))
                            (win.mHasSurface && win.mAppToken != null &&
                            win.mAppToken.layoutConfigChanges)))
                    || win.mAttrs.type == TYPE_UNIVERSE_BACKGROUND) {
                if (!win.mLayoutAttached) {
                    if (initial) {