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

Commit 0610af43 authored by Jerry Chang's avatar Jerry Chang Committed by Android (Google) Code Review
Browse files

Merge "Fix split screen divider corners flicker" into tm-dev

parents 6ad7a477 9f72c67e
Loading
Loading
Loading
Loading
+12 −4
Original line number Diff line number Diff line
@@ -833,12 +833,9 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,
        // Notify when the animation starts
        flushOnRecentsAnimationAndLauncherBound();

        // Start hiding the divider
        setDividerShown(false /* shown */, false /* immediate */);

        // Only add the callback to enable the input consumer after we actually have the controller
        mStateCallback.runOnceAtState(STATE_APP_CONTROLLER_RECEIVED | STATE_GESTURE_STARTED,
                mRecentsAnimationController::enableInputConsumer);
                this::startInterceptingTouchesForGesture);
        mStateCallback.setStateOnUiThread(STATE_APP_CONTROLLER_RECEIVED);

        mPassedOverviewThreshold = false;
@@ -1457,6 +1454,17 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,
        return swipePipToHomeAnimator;
    }

    private void startInterceptingTouchesForGesture() {
        if (mRecentsAnimationController == null) {
            return;
        }

        mRecentsAnimationController.enableInputConsumer();

        // Start hiding the divider
        setDividerShown(false /* shown */, true /* immediate */);
    }

    private void computeRecentsScrollIfInvisible() {
        if (mRecentsView != null && mRecentsView.getVisibility() != View.VISIBLE) {
            // Views typically don't compute scroll when invisible as an optimization,