Skip getting transforms for ignored tasks.
- If the stack does not contain the existing ignored task view on relayout, then we should not try and get the transform for it since it will be skipped. Bug: 32001762 Change-Id: I23182c76ac41b036c25edf92374622191e9d4ce3
This commit is contained in:
@@ -676,13 +676,13 @@ public class TaskStackView extends FrameLayout implements TaskStack.TaskStackCal
|
|||||||
for (int i = 0; i < taskViewCount; i++) {
|
for (int i = 0; i < taskViewCount; i++) {
|
||||||
TaskView tv = taskViews.get(i);
|
TaskView tv = taskViews.get(i);
|
||||||
Task task = tv.getTask();
|
Task task = tv.getTask();
|
||||||
int taskIndex = mStack.indexOfStackTask(task);
|
|
||||||
TaskViewTransform transform = mCurrentTaskTransforms.get(taskIndex);
|
|
||||||
|
|
||||||
if (mIgnoreTasks.contains(task.key)) {
|
if (mIgnoreTasks.contains(task.key)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int taskIndex = mStack.indexOfStackTask(task);
|
||||||
|
TaskViewTransform transform = mCurrentTaskTransforms.get(taskIndex);
|
||||||
if (animationOverrides != null && animationOverrides.containsKey(task)) {
|
if (animationOverrides != null && animationOverrides.containsKey(task)) {
|
||||||
animation = animationOverrides.get(task);
|
animation = animationOverrides.get(task);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user