commit | 1692ad67b309f49ad91238a422d5e9815ea402ae | [log] [tgz] |
---|---|---|
author | Alex Chau <alexchau@google.com> | Tue Aug 24 16:22:26 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Aug 24 16:22:26 2021 +0000 |
tree | d801fc149c75fc4ddad724481f2610dbfd599e37 | |
parent | 1dda3da8f38a12041bc423402774838d4b1cad9c [diff] | |
parent | 96ffcbcd2d39eb69e8e8db4cd8bed83c4448042b [diff] |
Avoid unnecessary onLayout if gesture is going to state without overview panel am: 96ffcbcd2d Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15667340 Change-Id: I8f5406cdb37c12759b2f3ef5870e804b8e9677e5
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; }