OSDN Git Service

Hide silent notifications section header on lockscreen
authorNed Burns <pixel@google.com>
Wed, 15 May 2019 18:50:11 +0000 (14:50 -0400)
committerNed Burns <pixel@google.com>
Mon, 20 May 2019 17:36:55 +0000 (13:36 -0400)
commit7eeccdd8eb2c8bcc8b84b04e8f507e9b55040e28
treece9064ff0812254a26106739691cf09ec33d30d2
parent687ee8d6c149d09e9391e80731c57c223fe1d3cb
Hide silent notifications section header on lockscreen

Change things so we remove the gentle header when we're on the lock
screen. We still want to show the break between sections, so we
also modify beginsSection() to count either the header or the first
gentle child if there is no header.

Test: manual
Bug: 132689331
Change-Id: I02708a3a532cc2b9df2d1cec8192387dff132152
packages/SystemUI/res/values/strings.xml
packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationSectionsManager.java
packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/NotificationSectionsManagerTest.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayoutTest.java