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

This commit is contained in:
TreeHugger Robot
2017-08-07 18:27:57 +00:00
committed by Android (Google) Code Review

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;