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

Commit d2c8fc05 authored by Tiger Huang's avatar Tiger Huang
Browse files

Remove unnecessary performLayout

We don't do layout if nothing is changed. The insets system has changed
significantly. The original issue might not exist. This CL removes the
unnecessary performLayout.

This is also a step to move window layout to the client side. When that
happens, we won't have performLayout on the server side.

Bug: 112205777
Bug: 161810301
Test: Rotate phone, swipe up and ensure that home gets the right insets
Change-Id: I4289805e5aa10e82412c7233b323fbb9a7d84e33
parent 54102c21
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -553,10 +553,6 @@ public class RecentsAnimationController implements DeathRecipient {

            mPendingStart = false;

            // Perform layout if it was scheduled before to make sure that we get correct content
            // insets for the target app window after a rotation
            mDisplayContent.performLayout(false /* initial */, false /* updateInputWindows */);

            final Rect contentInsets;
            final WindowState targetAppMainWindow = getTargetAppMainWindow();
            if (targetAppMainWindow != null) {