Merge "Avoid unnecessary onLayout if gesture is going to HOME" into sc-v2-dev am: 2f05076711
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14919071 Change-Id: I2ebdd47460f60c2c17c1ed6f187d2ea5e6b3f454
This commit is contained in:
@@ -2781,6 +2781,12 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
||||
|
||||
@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) {
|
||||
return;
|
||||
}
|
||||
|
||||
super.onLayout(changed, left, top, right, bottom);
|
||||
|
||||
updateEmptyStateUi(changed);
|
||||
|
||||
Reference in New Issue
Block a user