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
This commit is contained in:
Tiger Huang
2022-03-10 22:11:49 +08:00
parent 54102c21f2
commit d2c8fc0536

View File

@@ -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) {