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

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

2D Recents: Show shadows behind task views. am: 15fa3246

am: 0cb85782

Change-Id: Ice75a09a845ed8639c11053a3428f0b01fc40ded
parents 32d41b1b 0cb85782
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -155,8 +155,11 @@ public class TaskGridLayoutAlgorithm {
        int y = gridInfo.yOffsets[taskIndex];
        float z = stackLayout.mMaxTranslationZ;

        // We always set the dim alpha to 0, since we don't want grid task views to dim.
        float dimAlpha = 0f;
        float viewOutlineAlpha = 0f;
        // We always set the alpha of the view outline to 1, to make sure the shadow is visible.
        float viewOutlineAlpha = 1f;

        // 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);