OSDN Git Service

Support keyboard long-press on notifications
authorGeoffrey Pitsch <gpitsch@google.com>
Fri, 18 Aug 2017 15:15:12 +0000 (11:15 -0400)
committerGeoffrey Pitsch <gpitsch@google.com>
Thu, 24 Aug 2017 17:22:20 +0000 (13:22 -0400)
commit2ca798932ea2945184df1c5500b5b9f08af9af55
tree3ab796e2fcbca6dc1f7f840f74c4f96a4a1bba71
parent34eac2c59b3d9323d8519803179d01aad61e8455
Support keyboard long-press on notifications

ExpandableNotificationRow now handles long-clicks for keyboard support.
SwipeHelper calls performLongClick to trigger the listener on the row.
Now that the View listens to long clicks, SwipeHelper cancels
long-presses on the View when it see touch down events, so the event
doesn't get duped in the touch case.

Bug: 34840327
Test: manual
Change-Id: Ibeb93507781443d6b2dac209afd889b1d8d54aeb
packages/SystemUI/src/com/android/systemui/SwipeHelper.java
packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
packages/SystemUI/src/com/android/systemui/statusbar/car/CarStatusBar.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java