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

Commit 62d8cac4 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Override pivot in TaskViewSimulator as well for zoom in launch animation" into main

parents 1b1ce734 89283aa3
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -304,6 +304,14 @@ public class TaskViewSimulator implements TransformParams.BuilderProxy {
        calculateTaskSize();
    }

    /**
     * Override the pivot used to apply scale changes.
     */
    public void setPivotOverride(PointF pivotOverride) {
        mPivotOverride = pivotOverride;
        getFullScreenScale();
    }

    /**
     * Adds animation for all the components corresponding to transition from an app to overview.
     */
+7 −0
Original line number Diff line number Diff line
@@ -5418,6 +5418,13 @@ public abstract class RecentsView<
                            mTempPointF);
                    setPivotX(mTempPointF.x);
                    setPivotY(mTempPointF.y);
                    runActionOnRemoteHandles(
                            remoteTargetHandle -> {
                                remoteTargetHandle.getTaskViewSimulator().setPivotOverride(
                                        mTempPointF);
                                remoteTargetHandle.getTaskViewSimulator().setDrawsBelowRecents(
                                        false);
                            });
                }
            });
        } else if (!showAsGrid) {