Merge "Fixed a few battery issues in SystemUI" into nyc-dev am: 8fba3b395f am: 564621ecb2

am: 7386d77571

* commit '7386d7757156462fb6272f4aec854db4c1b0f272':
  Fixed a few battery issues in SystemUI

Change-Id: I88a1fdf8ae51c93e44d731793dae9f8258121bb8
This commit is contained in:
Selim Cinek
2016-05-25 00:57:07 +00:00
committed by android-build-merger

View File

@@ -2509,9 +2509,9 @@ public class NotificationStackScrollLayout extends ViewGroup
mNeedsAnimation = false;
}
if (!mAnimationEvents.isEmpty() || isCurrentlyAnimating()) {
setAnimationRunning(true);
mStateAnimator.startAnimationForEvents(mAnimationEvents, mCurrentStackScrollState,
mGoToFullShadeDelay);
setAnimationRunning(true);
mAnimationEvents.clear();
updateBackground();
updateViewShadows();
@@ -3133,6 +3133,7 @@ public class NotificationStackScrollLayout extends ViewGroup
mListener.onChildLocationsChanged(this);
}
runAnimationFinishedRunnables();
setAnimationRunning(false);
updateBackground();
updateViewShadows();
}
@@ -3249,6 +3250,7 @@ public class NotificationStackScrollLayout extends ViewGroup
maxLength = Math.max(mDarkAnimationOriginIndex,
getNotGoneChildCount() - mDarkAnimationOriginIndex - 1);
}
maxLength = Math.max(0, maxLength);
long delay = maxLength * StackStateAnimator.ANIMATION_DELAY_PER_ELEMENT_DARK;
fadeAnimator.setStartDelay(delay);
fadeAnimator.setDuration(StackStateAnimator.ANIMATION_DURATION_STANDARD);