Merge "AOD: Fix shelf animating when it should not" into oc-dr1-dev

am: 2b7fbd010e

Change-Id: I2956ecaff7b471af05e9baa275d7ea0742bfb4eb
This commit is contained in:
Adrian Roos
2017-08-07 18:41:04 +00:00
committed by android-build-merger

View File

@@ -3714,6 +3714,9 @@ public class NotificationStackScrollLayout extends ViewGroup
* See {@link AmbientState#setDark}.
*/
public void setDark(boolean dark, boolean animate, @Nullable PointF touchWakeUpScreenLocation) {
if (mAmbientState.isDark() == dark) {
return;
}
mAmbientState.setDark(dark);
if (animate && mAnimationsEnabled) {
mDarkNeedsAnimation = true;