From d0b9aae52c9a7b670ab1ead93a18518d384661fa Mon Sep 17 00:00:00 2001 From: Tracy Zhou Date: Fri, 2 Feb 2024 11:29:10 -0800 Subject: [PATCH] Add split instructions to stage split from keyboard shortcut Fixes: 319098298 Test: When launching split from fullscreen app via keyboard shortcut, the split instruction shows Change-Id: Ie64e5e65384a24825edc7ae6c8dea3203e2bd916 --- .../util/SplitWithKeyboardShortcutController.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/quickstep/src/com/android/quickstep/util/SplitWithKeyboardShortcutController.java b/quickstep/src/com/android/quickstep/util/SplitWithKeyboardShortcutController.java index 1abedb74c0..caffab1f87 100644 --- a/quickstep/src/com/android/quickstep/util/SplitWithKeyboardShortcutController.java +++ b/quickstep/src/com/android/quickstep/util/SplitWithKeyboardShortcutController.java @@ -153,7 +153,17 @@ public class SplitWithKeyboardShortcutController { controller.finish(true /* toRecents */, null /* onFinishComplete */, false /* sendUserLeaveHint */); } + + @Override + public void onAnimationCancel(Animator animation) { + mLauncher.getDragLayer().removeView(floatingTaskView); + mController.getSplitAnimationController() + .removeSplitInstructionsView(mLauncher); + mController.resetState(); + } }); + anim.add(mController.getSplitAnimationController() + .getShowSplitInstructionsAnim(mLauncher).buildAnim()); anim.buildAnim().start(); } };