From 448c0adb7835076fd3ff8e9900896cae0ce3c19b Mon Sep 17 00:00:00 2001 From: Winson Date: Wed, 19 Oct 2016 09:53:59 -0700 Subject: [PATCH] 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 --- .../src/com/android/systemui/recents/views/TaskStackView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java b/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java index 24e75ac981cf4..d2a8581472de4 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java +++ b/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java @@ -676,13 +676,13 @@ public class TaskStackView extends FrameLayout implements TaskStack.TaskStackCal for (int i = 0; i < taskViewCount; i++) { TaskView tv = taskViews.get(i); Task task = tv.getTask(); - int taskIndex = mStack.indexOfStackTask(task); - TaskViewTransform transform = mCurrentTaskTransforms.get(taskIndex); if (mIgnoreTasks.contains(task.key)) { continue; } + int taskIndex = mStack.indexOfStackTask(task); + TaskViewTransform transform = mCurrentTaskTransforms.get(taskIndex); if (animationOverrides != null && animationOverrides.containsKey(task)) { animation = animationOverrides.get(task); }