From 98314d0d4be52c93975ac6c8c2eb4e14a0ea6d09 Mon Sep 17 00:00:00 2001 From: Vinit Nayak Date: Mon, 23 Aug 2021 16:29:42 -0700 Subject: [PATCH] Rely on presense of divider target to determine split screen state * Don't rely on the number of leashes, since an app with assistant invoked returns multiple remote app targets even though the device isn't in split screen Fixes: 197293347 Test: Repro steps in bug don't cause crash. Less fatal bugs need to be addressed, TODO(b/197568823) Change-Id: I3432e3d8c54a433dd38d297db73ea3d46bad7ba9 --- .../com/android/quickstep/SwipeUpAnimationLogic.java | 2 ++ .../src/com/android/quickstep/views/RecentsView.java | 12 ++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/quickstep/src/com/android/quickstep/SwipeUpAnimationLogic.java b/quickstep/src/com/android/quickstep/SwipeUpAnimationLogic.java index ec51599fbf..1f57e9962a 100644 --- a/quickstep/src/com/android/quickstep/SwipeUpAnimationLogic.java +++ b/quickstep/src/com/android/quickstep/SwipeUpAnimationLogic.java @@ -278,6 +278,8 @@ public abstract class SwipeUpAnimationLogic implements RemoteAnimationTargetCompat primaryTaskTarget; RemoteAnimationTargetCompat secondaryTaskTarget; + // TODO(b/197568823) Determine if we need to exclude assistant as one of the targets we + // animate if (!mIsSwipeForStagedSplit) { primaryTaskTarget = targets.findTask(mGestureState.getRunningTaskId()); mRemoteTargetHandles[0].mTransformParams.setTargetSet(targets); diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index abeadfd29b..6094c2f760 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -4019,12 +4019,14 @@ public abstract class RecentsView