OSDN Git Service

AOD: Fix shelf animating when it should not
[android-x86/frameworks-base.git] / packages / SystemUI / src / com / android / systemui / statusbar / stack / NotificationStackScrollLayout.java
index 4bbe895..291ec1a 100644 (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;