commit | 58563314f9400cf9f49889e7127e909fa494df96 | [log] [tgz] |
---|---|---|
author | Alex Chau <alexchau@google.com> | Tue Aug 24 16:40:06 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Aug 24 16:40:06 2021 +0000 |
tree | f86cf5a8a19a54225e7693a3047f37257ba21666 | |
parent | a9c8856f0c9cbb7bf20558d84bb4f74c4bc9c87e [diff] | |
parent | 1692ad67b309f49ad91238a422d5e9815ea402ae [diff] |
Avoid unnecessary onLayout if gesture is going to state without overview panel am: 96ffcbcd2d am: 1692ad67b3 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15667340 Change-Id: Iabedca525966b0911a068a4047a84fdfe6789678
diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index abeadfd..dc7347e 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java
@@ -3314,9 +3314,9 @@ @Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { - // If we're going to HOME, avoid unnecessary onLayout that cause TaskViews to re-arrange - // during animation to HOME. - if (mCurrentGestureEndTarget == GestureState.GestureEndTarget.HOME) { + // If we're going to a state without overview panel, avoid unnecessary onLayout that + // cause TaskViews to re-arrange during animation to that state. + if (!mOverviewStateEnabled && !mFirstLayout) { return; }