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

Commit 8789023a authored by Winson's avatar Winson Committed by android-build-merger
Browse files

Fixing index bounds exception when TaskViews are added while dismissing. am:...

Fixing index bounds exception when TaskViews are added while dismissing. am: ffaf07fe am: 0eb26d7e
am: 3180d517

Change-Id: Ia362d0341259e4be681bda0004a64c79bc245517
parents e917cd39 3180d517
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -634,6 +634,12 @@ class TaskStackViewTouchHandler implements SwipeHelper.Callback {
            }

            int taskIndex = mCurrentTasks.indexOf(task);
            if (taskIndex == -1) {
                // If a task was added to the stack view after the start of the dismiss gesture,
                // just ignore it
                continue;
            }

            TaskViewTransform fromTransform = mCurrentTaskTransforms.get(taskIndex);
            TaskViewTransform toTransform = mFinalTaskTransforms.get(taskIndex);