Fix an issue where swiping up on the bubble bar would take you home

Test: manual - enable bubble bar, have bubbles
             - open an app
             - swipe up on the bubble bar
             => observe that bubbles expand and you don't go home so
                the app below bubbles remains open
Bug: 276981866
Change-Id: I3e89f4486287376eaea3e3111704ce71799a2da4
This commit is contained in:
Mady Mellor
2023-06-23 16:14:58 -07:00
parent 4ed855afcd
commit c2d96c31d9

View File

@@ -567,7 +567,8 @@ public class RecentsTransitionHandler implements Transitions.TransitionHandler {
&& taskInfo.configuration.windowConfiguration.isAlwaysOnTop()) {
// Tasks that are always on top (e.g. bubbles), will handle their own transition
// as they are on top of everything else. So cancel the merge here.
cancel("task #" + taskInfo.taskId + " is always_on_top");
cancel(false /* toHome */, false /* withScreenshots */,
"task #" + taskInfo.taskId + " is always_on_top");
return;
}
final boolean isRootTask = taskInfo != null