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

This commit is contained in:
Treehugger Robot authored and Android (Google) Code Review committed 2024-10-01 18:31:29 +00:00
commit 62d8cac481
2 files changed
+15

No files matched your search

@@ -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.
*/
@@ -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) {