OSDN Git Service

Handle back-to-back height reduction animations
authorTony Wickham <twickham@google.com>
Tue, 18 Apr 2017 18:05:37 +0000 (11:05 -0700)
committerTony Wickham <twickham@google.com>
Thu, 27 Apr 2017 22:18:37 +0000 (15:18 -0700)
commit24ba787ded0391d37327b972ca850b2710124a71
treed2a488532da312ff1e789431b7793c1c6dc7e02e
parentf77a6f7fd75243999912d040470a543e825d6d12
Handle back-to-back height reduction animations

We reduce the height of the notification item when the second to last
notification is dismissed (to remove the unused footer) and when the
last notification is removed (to remove the unused notification item).
If the former is runninng when the latter starts, the end result is
janky because we weren't properly cleaning up the first animation when
the second began. We now cancel the existing animation before starting
the second.

Bug: 36172954
Change-Id: I742c15b6f59874bc675b4c20a83e9578ac5e5387
src/com/android/launcher3/notification/NotificationItemView.java
src/com/android/launcher3/popup/PopupContainerWithArrow.java