Merge "Limit starting bounds of swipe to animation start rect" into tm-dev am: e8a4e0e2dc am: e9e0800fd7

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18607508

Change-Id: I7b4afd0d4eae8853e15c06c8f7f6472ef5035bf0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Vinit Nayak authored and Automerger Merge Worker committed 2022-05-27 03:29:15 +00:00
commit 1eb79473aa
4 files changed
+33

No files matched your search

@@ -266,6 +266,13 @@ public abstract class SwipeUpAnimationLogic implements
RectF cropRectF = new RectF(taskViewSimulator.getCurrentCropRect());
// Move the startRect to Launcher space as floatingIconView runs in Launcher
Matrix windowToHomePositionMap = new Matrix();
// If the start rect ends up overshooting too much to the left/right offscreen, bring it
// back to fullscreen. This can happen when the recentsScroll value isn't aligned with
// the pageScroll value for a given taskView, see b/228829958#comment12
mRemoteTargetHandles[0].getTaskViewSimulator().getOrientationState().getOrientationHandler()
.fixBoundsForHomeAnimStartRect(startRect, mDp);
homeToWindowPositionMap.invert(windowToHomePositionMap);
windowToHomePositionMap.mapRect(startRect);