OSDN Git Service

Fixed an issue where would could be left with empty notifications
authorSelim Cinek <cinek@google.com>
Fri, 2 Jun 2017 20:43:41 +0000 (13:43 -0700)
committerSelim Cinek <cinek@google.com>
Fri, 2 Jun 2017 23:02:00 +0000 (16:02 -0700)
commit77cb4d2cd02d23464fdfd61745b98030d17faa9f
tree259a6a679686eaf51d02df9601fc6a334c52022c
parent9c1b222fc1861f2e34fdac1cf1c2d624cebc4fd8
Fixed an issue where would could be left with empty notifications

If the state between systemui and the notification manager got
out of sync, we would not immediately remove the notifications when
using clear all.

This could lead to holes in the notification shade
temporarily. While this isn't a fix, it helps avoiding these ugly
states, similarly to how we already do it when manually swiping.

This also improves that only notifications that are visible are
actually participating in the clear all animations instead of
all of them.

Test: manual, hit clear all observe animations / normal clearing
Bug: 62171447
Change-Id: I83d0f3cb0bae4bc43bf35d3f9399cebc05259680
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java