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

Commit 30bc0ec2 authored by Filip Gruszczynski's avatar Filip Gruszczynski Committed by Android (Google) Code Review
Browse files

Merge "Refactoring: two more calls for WindowState.setDisplayLayoutNeeded."

parents 6f81ff67 b3acc92b
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -3024,7 +3024,6 @@ public class WindowManagerService extends IWindowManager.Stub

        final long origId = Binder.clearCallingIdentity();
        synchronized(mWindowMap) {
            DisplayContent displayContent = null;
            WindowToken wtoken = mTokenMap.remove(token);
            if (wtoken != null) {
                boolean delayed = false;
@@ -3034,7 +3033,6 @@ public class WindowManagerService extends IWindowManager.Stub

                    for (int i=0; i<N; i++) {
                        WindowState win = wtoken.windows.get(i);
                        displayContent = win.getDisplayContent();

                        if (win.mWinAnimator.isAnimating()) {
                            delayed = true;
@@ -3049,9 +3047,7 @@ public class WindowManagerService extends IWindowManager.Stub
                                        WindowManagerPolicy.TRANSIT_EXIT);
                            }
                            changed = true;
                            if (displayContent != null) {
                                displayContent.layoutNeeded = true;
                            }
                            win.setDisplayLayoutNeeded();
                        }
                    }

+4 −9
Original line number Diff line number Diff line
@@ -1823,15 +1823,10 @@ class WindowStateAnimator {
                    c.mAttachedHidden = false;
                    if (c.mWinAnimator.mSurfaceControl != null) {
                        c.mWinAnimator.performShowLocked();
                        // It hadn't been shown, which means layout not
                        // performed on it, so now we want to make sure to
                        // do a layout.  If called from within the transaction
                        // loop, this will cause it to restart with a new
                        // layout.
                        final DisplayContent displayContent = c.getDisplayContent();
                        if (displayContent != null) {
                            displayContent.layoutNeeded = true;
                        }
                        // It hadn't been shown, which means layout not performed on it, so now we
                        // want to make sure to do a layout.  If called from within the transaction
                        // loop, this will cause it to restart with a new layout.
                        c.setDisplayLayoutNeeded();
                    }
                }
            }