OSDN Git Service

Not showing menu buttons for any headsup notification
authorshawnlin <shawnlin@google.com>
Wed, 15 May 2019 12:06:10 +0000 (20:06 +0800)
committershawnlin <shawnlin@google.com>
Sun, 19 May 2019 07:00:22 +0000 (15:00 +0800)
commit3a950c371648ef20600a951cac11507fb7a1f190
treeb19fb5e68cc502e15274805c54b4e2f3a44f7e01
parentf1a7433ae4c51fd6cbbabd320aeb601e5ba85501
Not showing menu buttons for any headsup notification

Since swipe to remove notification behavior was rolled back to P which allows user to
remove a notification in both direction. We should not showing menu
buttons for any heads up notification either as in P.

Now it depends on the mIsUsingBidirectionalSwipe flag of NotificationMenuRow
to show menu buttons & the background.

Bug: 132668574
Test: send headsup notifications and swipe left/right
case and swipe left/right to check the background.

Change-Id: I5b96faed05d6184e02a8ede08f5e7c04ba5c456a
packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java
packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationSwipeHelper.java