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

Commit 69675691 authored by Jiaquan He's avatar Jiaquan He Committed by android-build-merger
Browse files

2D Recents: Fix issue with undocking only one task am: 244bac6c

am: 9e844c12

Change-Id: I37d36de574885fab286ad9f46f1289ead3bde603
parents aa153b5a 9e844c12
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -159,6 +159,10 @@ public class TaskGridLayoutAlgorithm {
     */
    public TaskViewTransform getTransform(int taskIndex, int taskCount,
        TaskViewTransform transformOut, TaskStackLayoutAlgorithm stackLayout) {
        if (taskCount == 0) {
            transformOut.reset();
            return transformOut;
        }

        TaskGridRectInfo gridInfo = mTaskGridRectInfoList[taskCount - 1];
        mTaskGridRect.set(gridInfo.size);
@@ -174,7 +178,7 @@ public class TaskGridLayoutAlgorithm {

        // We also need to invert the index in order to display the most recent tasks first.
        int taskLayoutIndex = taskCount - taskIndex - 1;
        boolean isTaskViewVisible = (taskLayoutIndex < MAX_LAYOUT_TASK_COUNT);
        boolean isTaskViewVisible = taskLayoutIndex < MAX_LAYOUT_TASK_COUNT;

        // Fill out the transform
        transformOut.scale = 1f;