From 5e8811e126fe49d367142a6419ec77184ef4deb3 Mon Sep 17 00:00:00 2001 From: Alex Chau Date: Tue, 20 Feb 2024 13:25:58 +0000 Subject: [PATCH] Make getTaskSize actaully a getter that does not modify member variables - This is a follow-up of ag/26255150 to clean-up usage of getTaskSize - Removed getTasksize and updatePivots in onLayout, as updateSizeAndPaddings has covered all scenarios - mLastComputedTaskSize will only be updated from updateSizeAndPaddings, with minor refactoring on how mTaskWidh/mTaskHeight/padding are calculated Bug: 325314248 Test: Manual on home/app->overview, rotations, fold/unfold etc. Flag: None Change-Id: I031a36e5e065a28070fb3f7f146978279f7d8886 --- .../android/quickstep/views/RecentsView.java | 28 ++++++++----------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index ecff6b43ad..a5a296c8e6 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -2093,22 +2093,20 @@ public abstract class RecentsView