OSDN Git Service

Fixed a bug where notifications could stay dark
authorSelim Cinek <cinek@google.com>
Fri, 26 Feb 2016 17:25:33 +0000 (09:25 -0800)
committerSelim Cinek <cinek@google.com>
Fri, 26 Feb 2016 21:57:40 +0000 (21:57 +0000)
commitb88b98477ae725092c27dfe52f7fca3d4f29913e
tree386526376e363ff0bae6035abb40c634f956d104
parent6fe181abd22a9a1d1701256daa06f01b5cfc1cab
Fixed a bug where notifications could stay dark

The check whether dark changed was always done
on the notification itself, ignoring that the
contentviews actually also have a check whether it
changed, leading to potential problems that this state
became out of date. In addition did we assume that whenever
an update comes in the text becomes normal, which is
not true for an inline update. This hopefully fixes things once
and for all! I said once and for all!

Bug: 27147160
Change-Id: Idd68be8da0f648cf79102544b038065618c1d0ff
packages/SystemUI/src/com/android/systemui/statusbar/NotificationContentView.java
packages/SystemUI/src/com/android/systemui/statusbar/notification/NotificationCustomViewWrapper.java
packages/SystemUI/src/com/android/systemui/statusbar/notification/NotificationHeaderViewWrapper.java
packages/SystemUI/src/com/android/systemui/statusbar/notification/NotificationTemplateViewWrapper.java
packages/SystemUI/src/com/android/systemui/statusbar/notification/NotificationViewWrapper.java