OSDN Git Service

Improved notification scroller animation logic
authorSelim Cinek <cinek@google.com>
Wed, 7 May 2014 15:27:26 +0000 (17:27 +0200)
committerSelim Cinek <cinek@google.com>
Wed, 7 May 2014 15:33:25 +0000 (17:33 +0200)
commit3af00cf10660c7fdc0582dc12361c13673d0c9bb
tree9193563b6618a0a8aca0353b8a313c819fb7ddbe
parenteb973565f3efc6417ca35363e4d6c642947775d8
Improved notification scroller animation logic

When an animation was already running, the calculation of the
new duration was wrong. We are now also starting the animation
instantly instead of waiting for the next frame.
Also improved the scrolling performance, which was lagging behind by one frame

Change-Id: I25d6e6eedf33d94f2f90bdc39d863955c707370c
packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java
packages/SystemUI/src/com/android/systemui/statusbar/stack/StackStateAnimator.java