mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
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
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user