Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 96ffcbcd authored by Alex Chau's avatar Alex Chau
Browse files

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
parent 19a616f2
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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;
        }