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

Commit 8c427dd7 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Apply/reset split scroll offset regardless of previous state" into sc-v2-dev am: 87f010f3

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16371720

Change-Id: Iabeaef0f1da87df55708757e298e29c1c829bd8b
parents 3c519248 87f010f3
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -66,6 +66,12 @@ public final class RecentsViewStateController extends
        // In Overview, we may be layering app surfaces behind Launcher, so we need to notify
        // DepthController to prevent optimizations which might occlude the layers behind
        mLauncher.getDepthController().setHasContentBehindLauncher(state.overviewUi);

        if (isSplitSelectionState(state)) {
            mRecentsView.applySplitPrimaryScrollOffset();
        } else {
            mRecentsView.resetSplitPrimaryScrollOffset();
        }
    }

    @Override
@@ -90,8 +96,10 @@ public final class RecentsViewStateController extends
        LauncherState currentState = mLauncher.getStateManager().getState();
        if (isSplitSelectionState(toState) && !isSplitSelectionState(currentState)) {
            builder.add(mRecentsView.createSplitSelectInitAnimation().buildAnim());
        }
        if (isSplitSelectionState(toState)) {
            mRecentsView.applySplitPrimaryScrollOffset();
        } else if (!isSplitSelectionState(toState) && isSplitSelectionState(currentState)) {
        } else {
            mRecentsView.resetSplitPrimaryScrollOffset();
        }