OSDN Git Service

Fix janky wakeup animation
authorJorim Jaggi <jjaggi@google.com>
Thu, 5 Jul 2018 16:28:12 +0000 (18:28 +0200)
committerJorim Jaggi <jjaggi@google.com>
Mon, 9 Jul 2018 12:55:26 +0000 (14:55 +0200)
commitc4cf07a16f27ed795cfea6b0f2e650b63f2b5552
treec676d1896bb4b60644a1d2ee13d88b1168805b59
parent5c75b5b60e7ec757884d71ae2dd12ee1c71614a1
Fix janky wakeup animation

Previous wake-up animation was totally broken before, as multiple
animations were running with different interpolators and different
durations, creating a really jaring experience for the front-door
of the phone, which users see hundreds of times a day.

Instead, we use a single animator to drive everything, and pass in
both the interpolated and the linear value so the right value can
be used in whichever place.

Test: Wakeup/sleep phone with different numbers of notifications
Fixes: 110980608
Change-Id: If1758404a4c49fcd7dc9fa3c93bb18e42a586632
packages/SystemUI/src/com/android/systemui/Interpolators.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java