summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/SystemUI/src/com/android/systemui/recents/views/grid/TaskGridLayoutAlgorithm.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/recents/views/grid/TaskGridLayoutAlgorithm.java b/packages/SystemUI/src/com/android/systemui/recents/views/grid/TaskGridLayoutAlgorithm.java
index 046ced4aa57f..5d969f9e1b48 100644
--- a/packages/SystemUI/src/com/android/systemui/recents/views/grid/TaskGridLayoutAlgorithm.java
+++ b/packages/SystemUI/src/com/android/systemui/recents/views/grid/TaskGridLayoutAlgorithm.java
@@ -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);