From 6379d5370b77af0d3c2e926ed38174144aebbac0 Mon Sep 17 00:00:00 2001 From: Tony Date: Mon, 24 Sep 2018 15:31:40 -0400 Subject: [PATCH] Use task insets rather than launcher insets when swiping down This fixes the issue where dragging down on full screen apps was offset by the status bar even though it shouldn't be. Bug: 77979532 Change-Id: I8cb17778c4ae66b1821e86dd757626f875a27d2d --- .../src/com/android/quickstep/util/ClipAnimationHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/util/ClipAnimationHelper.java b/quickstep/src/com/android/quickstep/util/ClipAnimationHelper.java index c3ce4399ef..8aaa40c6bb 100644 --- a/quickstep/src/com/android/quickstep/util/ClipAnimationHelper.java +++ b/quickstep/src/com/android/quickstep/util/ClipAnimationHelper.java @@ -239,7 +239,7 @@ public class ClipAnimationHelper { updateStackBoundsToMultiWindowTaskSize(activity); } else { mSourceStackBounds.set(mHomeStackBounds); - mSourceInsets.set(activity.getDeviceProfile().getInsets()); + mSourceInsets.set(ttv.getInsets()); } TransformedRect targetRect = new TransformedRect();