OSDN Git Service

Fixed an issue where the qs panel wasn't properly placed
authorSelim Cinek <cinek@google.com>
Fri, 2 Jun 2017 00:36:46 +0000 (17:36 -0700)
committerSelim Cinek <cinek@google.com>
Wed, 7 Jun 2017 19:08:39 +0000 (19:08 +0000)
commit5cf1d0589a0045ee5f01802975f394847e891215
treeddbd16aaba206f990b1f91e50a2e3a8eda3d7d29
parent1581bb0b75c6c04fcb6b96c8c21a9e1860f1bd38
Fixed an issue where the qs panel wasn't properly placed

The QS panel should only be placed below the notifications
if it has notifications above the shelf. This ensures that
all animations including icons are appearing in the right
place.

Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/ExpandableNotificationRowTest.java
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/AboveShelfObserverTest.java
Fixes: 35305470
Change-Id: I97fb0c76ed69b7638ce83a7c06856d87bf6bf65f
12 files changed:
packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java
packages/SystemUI/src/com/android/systemui/statusbar/notification/AboveShelfChangedListener.java [new file with mode: 0644]
packages/SystemUI/src/com/android/systemui/statusbar/notification/AboveShelfObserver.java [new file with mode: 0644]
packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationsQuickSettingsContainer.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpManager.java
packages/SystemUI/src/com/android/systemui/statusbar/stack/AmbientState.java
packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/ExpandableNotificationRowTest.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/NotificationTestHelper.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/AboveShelfObserverTest.java [new file with mode: 0644]