Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc642e86 authored by Mady Mellor's avatar Mady Mellor Committed by Automerger Merge Worker
Browse files

Merge "Cancel merges in RecentsTransitionHandler if it's always on top" into...

Merge "Cancel merges in RecentsTransitionHandler if it's always on top" into udc-dev am: f9a71bc3 am: 4c0b1c95

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22259798



Change-Id: I14062b3f461fdac97844bb13bbc8cd079b9e8ad9
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents c6d8bd38 4c0b1c95
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -418,6 +418,13 @@ public class RecentsTransitionHandler implements Transitions.TransitionHandler {
            for (int i = 0; i < info.getChanges().size(); ++i) {
                final TransitionInfo.Change change = info.getChanges().get(i);
                final ActivityManager.RunningTaskInfo taskInfo = change.getTaskInfo();
                if (taskInfo != null
                        && 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();
                    return;
                }
                hasTaskChange = hasTaskChange || taskInfo != null;
                final boolean isLeafTask = leafTaskFilter.test(change);
                if (TransitionUtil.isOpeningType(change.getMode())) {