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

Commit ca94ef43 authored by Vinay Joglekar's avatar Vinay Joglekar Committed by Android (Google) Code Review
Browse files

Merge "Fix a bug where the last large task index was not being set correctly." into main

parents 715d495a 06dbdcea
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -3141,7 +3141,9 @@ public abstract class RecentsView<
        // Horizontal grid translation for each task
        float[] gridTranslations = new float[taskCount];

        int lastLargeTaskIndex = Integer.MAX_VALUE;
        TaskView lastLargeTaskView = mUtils.getLastLargeTaskView(getTaskViews());
        int lastLargeTaskIndex =
                (lastLargeTaskView == null) ? Integer.MAX_VALUE : indexOfChild(lastLargeTaskView);
        Set<Integer> largeTasksIndices = new HashSet<>();
        int focusedTaskShift = 0;
        int largeTaskWidthAndSpacing = 0;
@@ -3177,7 +3179,6 @@ public abstract class RecentsView<
                taskView.setGridTranslationY((mLastComputedTaskSize.height() + taskTopMargin
                        - taskView.getLayoutParams().height) / 2f);

                lastLargeTaskIndex = i;
                largeTasksIndices.add(i);
                largeTaskWidthAndSpacing = taskWidthAndSpacing;