Avoid unnecessary onLayout if gesture is going to state without overview panel
Fixes: 186508379 Test: swipe up to carousel, then to home Test: quick switch, immediately swipe up to overview, then to home Change-Id: I0b28e163cbb289a636a89bc52c43a1977a59d86f
This commit is contained in:
@@ -3314,9 +3314,9 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
|
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
|
// If we're going to a state without overview panel, avoid unnecessary onLayout that
|
||||||
// during animation to HOME.
|
// cause TaskViews to re-arrange during animation to that state.
|
||||||
if (mCurrentGestureEndTarget == GestureState.GestureEndTarget.HOME) {
|
if (!mOverviewStateEnabled && !mFirstLayout) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user