OSDN Git Service

Fixed the ordering of colorized media notifications
authorSelim Cinek <cinek@google.com>
Sat, 6 May 2017 02:49:22 +0000 (19:49 -0700)
committerSelim Cinek <cinek@google.com>
Sat, 6 May 2017 02:49:22 +0000 (19:49 -0700)
commitc6c639cb0641248f245538d4164bea6d4e0c2fc3
treed7e224d9746c058685785dddbae1b778a77ec591
parentf323e3a5435ac21c6a5684e0aeba5f26ea699f9d
Fixed the ordering of colorized media notifications

Previously colorized media notifications were downranked if they
were not foreground services. This could lead to bugs where
colorized notifications were ranked below non-colorized ones.

Test: runtest systemui-notification
Bug: 38049452
Change-Id: I8652de55acff0b03fa337478ad7ad463ecc4e82d
services/core/java/com/android/server/notification/NotificationComparator.java
services/tests/notification/src/com/android/server/notification/NotificationComparatorTest.java