OSDN Git Service

Fix wrong peek height of the notification panel
authordongwan0605.kim <dongwan0605.kim@lge.com>
Fri, 30 Dec 2016 06:46:50 +0000 (15:46 +0900)
committerBasil Gello <vasek.gello@gmail.com>
Wed, 25 Jul 2018 10:50:04 +0000 (12:50 +0200)
commit96ce7c610282014cadb8a35e9565adef2ad6d9da
tree98039d38770938a06db2e5ccea8dd9a6b78ce0f0
parentd1f542035cb77018c051245035d5df79426b5f2c
Fix wrong peek height of the notification panel

From N, the topmost notification slides in expanded from the top, not collapsed.
(https://android.googlesource.com/platform/frameworks/base/+/d1ad9ab3121cb54387c5d2b71b48708dcaed5c43)
But when peek from status bar, the peek height was measured with collapsed height.
Therefore fix the peek height with expanded height of the topmost notification.

Test: manual - Test peeking from status bar with expandable topmost notification.
Change-Id: I46173c9e82a1221b543133c38ec6aaf746244011
(cherry picked from commit c2ed273ca592e008917e74ad1f3ce9c9ccddd041)
(cherry picked from commit 09b798ab2041d792056a64562f73c8b11997b42e)
packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java