From d2c8fc05366f50057d5de71e8509f4bb20fdf78f Mon Sep 17 00:00:00 2001 From: Tiger Huang Date: Thu, 10 Mar 2022 22:11:49 +0800 Subject: [PATCH] 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 --- .../com/android/server/wm/RecentsAnimationController.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/services/core/java/com/android/server/wm/RecentsAnimationController.java b/services/core/java/com/android/server/wm/RecentsAnimationController.java index a407021c75943..a4d338c06708b 100644 --- a/services/core/java/com/android/server/wm/RecentsAnimationController.java +++ b/services/core/java/com/android/server/wm/RecentsAnimationController.java @@ -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) {