OSDN Git Service

Fixed a bug where children could have fake shadows
authorSelim Cinek <cinek@google.com>
Fri, 18 Mar 2016 02:39:00 +0000 (19:39 -0700)
committerSelim Cinek <cinek@google.com>
Tue, 22 Mar 2016 03:01:20 +0000 (20:01 -0700)
Bug: 24866646
Change-Id: I2a6e7749a16eb62480abbb49b5f600af1e8c327a

packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationChildrenContainer.java

index 1f8818b..176788b 100644 (file)
@@ -379,6 +379,8 @@ public class NotificationChildrenContainer extends ViewGroup {
             }
             tmpState.alpha = alpha;
             state.applyViewState(divider, tmpState);
+            // There is no fake shadow to be drawn on the children
+            child.setFakeShadowIntensity(0.0f, 0.0f, 0, 0);
         }
     }
 
@@ -413,6 +415,8 @@ public class NotificationChildrenContainer extends ViewGroup {
             }
             tmpState.alpha = alpha;
             stateAnimator.startViewAnimations(divider, tmpState, baseDelay, duration);
+            // There is no fake shadow to be drawn on the children
+            child.setFakeShadowIntensity(0.0f, 0.0f, 0, 0);
         }
     }