From 20ce6a97fddefb2c348297c632d69e16da9e79d5 Mon Sep 17 00:00:00 2001 From: Vinit Nayak Date: Wed, 2 Nov 2022 21:56:55 -0700 Subject: [PATCH] Switch to screenshot when finishing recents animation for split select * There's a situation where we can also let the live-tile play if it wasn't the one selected for split select, but there's some bug w/ the focused task that causes the thumbnail and live tile translations to be incorrect. * But this maintains parity. Fixes: 255915066 Test: Starting/ending/ignoring live tile in split never shows the cutout Change-Id: I2f63ca44a5a1cc16df12e7b3b06ca211dc995f8d --- .../com/android/quickstep/views/RecentsView.java | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index ce96b7168e..e49fdc1d14 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -2897,6 +2897,19 @@ public abstract class RecentsView finishRecentsAnimation(true /* toRecents */, + false /* shouldPip */, null /* onFinishComplete */)); + } + } + }); anim.addEndListener(success -> { if (success) { InteractionJankMonitorWrapper.end( @@ -4187,8 +4200,6 @@ public abstract class RecentsView