diff options
author | Winson Chung <winsonc@google.com> | 2018-05-24 22:38:59 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2018-05-24 22:38:59 +0000 |
commit | f13015d76a06da9d737a93b8ad5ca2a1e3d7b0ed (patch) | |
tree | 73f29464f17377c23620734e9f8f83f708f1cd05 | |
parent | a252a075622d357f8e79ffb66575c9faa7903878 (diff) | |
parent | af41ea2ac52e1dbf57e46c1b02c5ee302ed4cff1 (diff) | |
download | android_packages_apps_Trebuchet-f13015d76a06da9d737a93b8ad5ca2a1e3d7b0ed.tar.gz android_packages_apps_Trebuchet-f13015d76a06da9d737a93b8ad5ca2a1e3d7b0ed.tar.bz2 android_packages_apps_Trebuchet-f13015d76a06da9d737a93b8ad5ca2a1e3d7b0ed.zip |
Merge "Fix recents task view launch animation unclipping issue." into ub-launcher3-edmonton
-rw-r--r-- | quickstep/src/com/android/quickstep/util/ClipAnimationHelper.java | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/quickstep/src/com/android/quickstep/util/ClipAnimationHelper.java b/quickstep/src/com/android/quickstep/util/ClipAnimationHelper.java index cc24f1d8a..a654482f9 100644 --- a/quickstep/src/com/android/quickstep/util/ClipAnimationHelper.java +++ b/quickstep/src/com/android/quickstep/util/ClipAnimationHelper.java @@ -227,12 +227,16 @@ public class ClipAnimationHelper { dl.getDescendantRectRelativeToSelf(ttv, targetRect.rect); updateTargetRect(targetRect); - // Transform the clip relative to the target rect. - float scale = mTargetRect.width() / mSourceRect.width(); - mSourceWindowClipInsets.left = mSourceWindowClipInsets.left * scale; - mSourceWindowClipInsets.top = mSourceWindowClipInsets.top * scale; - mSourceWindowClipInsets.right = mSourceWindowClipInsets.right * scale; - mSourceWindowClipInsets.bottom = mSourceWindowClipInsets.bottom * scale; + if (target == null) { + // Transform the clip relative to the target rect. Only do this in the case where we + // aren't applying the insets to the app windows (where the clip should be in target app + // space) + float scale = mTargetRect.width() / mSourceRect.width(); + mSourceWindowClipInsets.left = mSourceWindowClipInsets.left * scale; + mSourceWindowClipInsets.top = mSourceWindowClipInsets.top * scale; + mSourceWindowClipInsets.right = mSourceWindowClipInsets.right * scale; + mSourceWindowClipInsets.bottom = mSourceWindowClipInsets.bottom * scale; + } } private void updateStackBoundsToMultiWindowTaskSize(BaseDraggingActivity activity) { |