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

am: 564621ecb2

* commit '564621ecb25a5817f84d338a6fd5e3e2b0a31c7d':
  Fixed a few battery issues in SystemUI

Change-Id: I993215d92ee23ce549e6d1bd72552ac359213a21
This commit is contained in:
Selim Cinek
2016-05-25 00:42:31 +00:00
committed by android-build-merger

View File

@@ -2511,9 +2511,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();
@@ -3131,6 +3131,7 @@ public class NotificationStackScrollLayout extends ViewGroup
mListener.onChildLocationsChanged(this);
}
runAnimationFinishedRunnables();
setAnimationRunning(false);
updateBackground();
updateViewShadows();
}
@@ -3247,6 +3248,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);