Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8ffdc2c5 authored by Selim Cinek's avatar Selim Cinek Committed by android-build-merger
Browse files

Merge "Fixed a few battery issues in SystemUI" into nyc-dev

am: 8fba3b39

* commit '8fba3b39':
  Fixed a few battery issues in SystemUI

Change-Id: Ieb5bf24c13004fc97bb1006494e915924f54c02c
parents a95f7d77 8fba3b39
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);