From 1f5de2483bc9eb36128a7f700ca4539591afd186 Mon Sep 17 00:00:00 2001 From: Alex Chau Date: Mon, 16 Oct 2023 18:27:05 +0100 Subject: [PATCH] Avoid drawing live tile behind recents when launching on grid overview Fix: 304911154 Flag: none Test: Swipe up in tablet, scroll to side, launch focused task Change-Id: I91dd8b4088f02af9dc5e603853d8e26606acc38f --- .../src/com/android/quickstep/views/TaskView.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/quickstep/src/com/android/quickstep/views/TaskView.java b/quickstep/src/com/android/quickstep/views/TaskView.java index df907e7792..dbdf058306 100644 --- a/quickstep/src/com/android/quickstep/views/TaskView.java +++ b/quickstep/src/com/android/quickstep/views/TaskView.java @@ -1020,6 +1020,17 @@ public class TaskView extends FrameLayout implements Reusable { mActivity.getStateManager(), recentsView, recentsView.getDepthController()); anim.addListener(new AnimatorListenerAdapter() { + @Override + public void onAnimationStart(Animator animation) { + if (!recentsView.showAsGrid()) { + return; + } + recentsView.runActionOnRemoteHandles( + (Consumer) remoteTargetHandle -> + remoteTargetHandle + .getTaskViewSimulator() + .setDrawsBelowRecents(false)); + } @Override public void onAnimationEnd(Animator animator) {