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

Commit fdfe6107 authored by Tracy Zhou's avatar Tracy Zhou Committed by Android (Google) Code Review
Browse files

Merge "Update the position of the live tile overlay upon swipe up" into ub-launcher3-master

parents c146d0c3 c9c9a66f
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -540,14 +540,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;
@@ -558,6 +550,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
@@ -197,6 +197,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;
    }