commit | c44b3cdda9b8d51ec2142e65674617d34d9a5c9d | [log] [tgz] |
---|---|---|
author | Alex Chau <alexchau@google.com> | Mon Oct 16 18:27:05 2023 +0100 |
committer | Cherrypicker Worker <android-build-cherrypicker-worker@google.com> | Tue Oct 17 08:32:22 2023 +0000 |
tree | a993e74775515ae423b1c8da2a48c662474c688e | |
parent | 08f89425bbd652f9f6e0ad0d31f2e9aba8556705 [diff] |
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 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:1f5de2483bc9eb36128a7f700ca4539591afd186) Merged-In: I91dd8b4088f02af9dc5e603853d8e26606acc38f Change-Id: I91dd8b4088f02af9dc5e603853d8e26606acc38f
diff --git a/quickstep/src/com/android/quickstep/views/TaskView.java b/quickstep/src/com/android/quickstep/views/TaskView.java index 2a40ccf..39b6c62 100644 --- a/quickstep/src/com/android/quickstep/views/TaskView.java +++ b/quickstep/src/com/android/quickstep/views/TaskView.java
@@ -1010,6 +1010,17 @@ mActivity.getStateManager(), recentsView, recentsView.getDepthController()); anim.addListener(new AnimatorListenerAdapter() { + @Override + public void onAnimationStart(Animator animation) { + if (!recentsView.showAsGrid()) { + return; + } + recentsView.runActionOnRemoteHandles( + (Consumer<RemoteTargetHandle>) remoteTargetHandle -> + remoteTargetHandle + .getTaskViewSimulator() + .setDrawsBelowRecents(false)); + } @Override public void onAnimationEnd(Animator animator) {