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

Commit b3acc92b authored by Filip Gruszczynski's avatar Filip Gruszczynski
Browse files

Refactoring: two more calls for WindowState.setDisplayLayoutNeeded.

Change-Id: I2037bda03644f16ab03145eea257714b974a3059
parent f4eb180e
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -3023,7 +3023,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;
@@ -3033,7 +3032,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;
@@ -3048,9 +3046,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
@@ -1819,15 +1819,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();
                    }
                }
            }