commit | cec869d361e287a3763cae4cd6bc4f226fbb9071 | [log] [tgz] |
---|---|---|
author | Jiaquan He <hejq@google.com> | Thu Jan 12 19:02:18 2017 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Thu Jan 12 19:02:18 2017 +0000 |
tree | 2f6da554f8069a5af73a81d215a23f2e876ca038 | |
parent | 32d41b1b38b8ac06aa7b718b1d0da2d2ed71c557 [diff] | |
parent | 0cb857822e7f90c257229c554a0fd19baa74d6bf [diff] |
2D Recents: Show shadows behind task views. am: 15fa3246d8 am: 0cb857822e Change-Id: Ice75a09a845ed8639c11053a3428f0b01fc40ded
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 046ced4..5d969f9 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 @@ 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);