OSDN Git Service

Avoiding weird icon positions
authorSelim Cinek <cinek@google.com>
Fri, 9 Jun 2017 02:11:50 +0000 (19:11 -0700)
committerSelim Cinek <cinek@google.com>
Wed, 28 Jun 2017 11:50:36 +0000 (13:50 +0200)
commit1f62495a0aaf2d094c19bbdcf148d49360e052d4
treee2a6d859a7f09ad74f7f90be7ab1f92336e10809
parentd43bc31eb73ed062af502f77da38a64983ed90cf
Avoiding weird icon positions

When expanding quickly we switch to a linear interpolation.
In this case the last icon may be stuck in between the
shelf position and the notification position, which looks pretty bad.
We therefore optimize this case better to avoid these weird
in-between cases.

Test: manual, expand with various notifications
Fixes: 63088105
Fixes: 62374617
Change-Id: I95f72c9defc6c941a5a6a71829d239529c3861e9
packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationIconContainer.java
packages/SystemUI/src/com/android/systemui/statusbar/stack/AmbientState.java
packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java