Merge "Cancel merges in RecentsTransitionHandler if it's always on top" into udc-dev
This commit is contained in:
@@ -418,6 +418,13 @@ public class RecentsTransitionHandler implements Transitions.TransitionHandler {
|
|||||||
for (int i = 0; i < info.getChanges().size(); ++i) {
|
for (int i = 0; i < info.getChanges().size(); ++i) {
|
||||||
final TransitionInfo.Change change = info.getChanges().get(i);
|
final TransitionInfo.Change change = info.getChanges().get(i);
|
||||||
final ActivityManager.RunningTaskInfo taskInfo = change.getTaskInfo();
|
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;
|
hasTaskChange = hasTaskChange || taskInfo != null;
|
||||||
final boolean isLeafTask = leafTaskFilter.test(change);
|
final boolean isLeafTask = leafTaskFilter.test(change);
|
||||||
if (TransitionUtil.isOpeningType(change.getMode())) {
|
if (TransitionUtil.isOpeningType(change.getMode())) {
|
||||||
|
|||||||
Reference in New Issue
Block a user