From 294e029be09898d1138d17cfd41f5365254cc036 Mon Sep 17 00:00:00 2001 From: Jon Miranda Date: Tue, 25 Feb 2025 07:48:39 -0800 Subject: [PATCH] Prevent taskbar from stashing in overview in live tile mode. Fixes: 354627538 Flag: EXEMPT bugfix Test: Open app, go to overview, pause app Change-Id: I82717747408f5776a50aa239c384f87927b54832 --- .../com/android/quickstep/views/RecentsView.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index d17dfb831f..d26b55cf37 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -1462,7 +1462,8 @@ public abstract class RecentsView< anim.addListener(new AnimatorListenerAdapter() { @Override public void onAnimationEnd(Animator animation) { - finishRecentsAnimation(false /* toRecents */, null); + finishRecentsAnimation(false /* toRecents */, true /*shouldPip*/, + allAppsAreTranslucent(apps), null); } }); } else { @@ -1473,6 +1474,18 @@ public abstract class RecentsView< anim.start(); } + private boolean allAppsAreTranslucent(RemoteAnimationTarget[] apps) { + if (apps == null) { + return false; + } + for (int i = apps.length - 1; i >= 0; --i) { + if (!apps[i].isTranslucent) { + return false; + } + } + return true; + } + public boolean isTaskViewVisible(TaskView tv) { if (showAsGrid()) { int screenStart = getPagedOrientationHandler().getPrimaryScroll(this);