OSDN Git Service

Skip getting transforms for ignored tasks.
authorWinson <winsonc@google.com>
Wed, 19 Oct 2016 16:53:59 +0000 (09:53 -0700)
committerWinson <winsonc@google.com>
Wed, 19 Oct 2016 16:53:59 +0000 (09:53 -0700)
- 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

packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java

index 24e75ac..d2a8581 100644 (file)
@@ -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);
             }