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

Commit 651f0b3e authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fixing jump when swiping up/down in landspace rotation" into ub-launcher3-rvc-dev

parents 7d2011bf 1d756513
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -258,9 +258,9 @@ public class TaskViewSimulator implements TransformParams.BuilderProxy {
        mMatrix.postScale(scale, scale);
        mMatrix.postTranslate(insets.left, insets.top);

        // Apply TaskView matrix: scale, translate, scroll
        mMatrix.postScale(mCurveScale, mCurveScale, taskWidth / 2, taskHeight / 2);
        // Apply TaskView matrix: translate, scale, scroll
        mMatrix.postTranslate(mTaskRect.left, mTaskRect.top);
        mMatrix.postScale(mCurveScale, mCurveScale, taskWidth / 2, taskHeight / 2);
        mOrientationState.getOrientationHandler().set(
                mMatrix, MATRIX_POST_TRANSLATE, mScrollState.scroll);

+1 −1
Original line number Diff line number Diff line
@@ -227,8 +227,8 @@ public class TaskThumbnailView extends View implements PluginListener<OverviewSc
    protected void onDraw(Canvas canvas) {
        RectF currentDrawnInsets = mFullscreenParams.mCurrentDrawnInsets;
        canvas.save();
        canvas.translate(currentDrawnInsets.left, currentDrawnInsets.top);
        canvas.scale(mFullscreenParams.mScale, mFullscreenParams.mScale);
        canvas.translate(currentDrawnInsets.left, currentDrawnInsets.top);
        // Draw the insets if we're being drawn fullscreen (we do this for quick switch).
        drawOnCanvas(canvas,
                -currentDrawnInsets.left,