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

Commit c9c9a66f authored by Tracy Zhou's avatar Tracy Zhou
Browse files

Update the position of the live tile overlay upon swipe up

Everything is behind the flag so it's completely safe

Bug: 160911104
Test: manual
Change-Id: I9dc0ff7ea178ba5562d13370412b0dfa2599d2c0
parent 8063fe0e
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -553,14 +553,6 @@ public abstract class BaseSwipeUpHandlerV2<T extends StatefulActivity<?>, Q exte

    @Override
    public void updateFinalShift() {
        if (ENABLE_QUICKSTEP_LIVE_TILE.get()) {
            if (mRecentsAnimationTargets != null) {
                LiveTileOverlay.INSTANCE.update(
                        mTaskViewSimulator.getCurrentCropRect(),
                        mTaskViewSimulator.getCurrentCornerRadius());
            }
        }

        final boolean passed = mCurrentShift.value >= MIN_PROGRESS_FOR_OVERVIEW;
        if (passed != mPassedOverviewThreshold) {
            mPassedOverviewThreshold = passed;
@@ -571,6 +563,14 @@ public abstract class BaseSwipeUpHandlerV2<T extends StatefulActivity<?>, Q exte

        updateSysUiFlags(mCurrentShift.value);
        applyWindowTransform();
        if (ENABLE_QUICKSTEP_LIVE_TILE.get()) {
            if (mRecentsAnimationTargets != null) {
                LiveTileOverlay.INSTANCE.update(
                        mTaskViewSimulator.getCurrentRect(),
                        mTaskViewSimulator.getCurrentCornerRadius());
            }
        }

        updateLauncherTransitionProgress();
    }

+9 −0
Original line number Diff line number Diff line
@@ -196,6 +196,15 @@ public class TaskViewSimulator implements TransformParams.BuilderProxy {
        return mTempRectF;
    }

    /**
     * Returns the current task bounds in the Launcher coordinate space.
     */
    public RectF getCurrentRect() {
        RectF result = getCurrentCropRect();
        mMatrix.mapRect(result);
        return result;
    }

    public RecentsOrientedState getOrientationState() {
        return mOrientationState;
    }