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

Commit 448c0adb authored by Winson's avatar Winson
Browse files

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
parent 82f050f7
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -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);
            }
            }