summaryrefslogtreecommitdiff
path: root/libs/input/PointerControllerContext.cpp
diff options
context:
space:
mode:
author Beth Thibodeau <ethibodeau@google.com> 2024-04-30 14:07:04 -0500
committer Beth Thibodeau <ethibodeau@google.com> 2024-05-14 08:57:45 -0500
commit0eb8d2feb4ccfe930663e1728f85df1c2c563816 (patch)
treef6daeb30328fe6ca8522c4428a7036174baa7281 /libs/input/PointerControllerContext.cpp
parent34086990c874a7b71587755a5df2015fefd2e8a7 (diff)
Only dismiss media notification on user interaction
Calling NotifCollection.dismissNotification causes the deleteIntent for the notification to be sent. This API is used to tell when the notification has been explicitly dismissed by the user, so we shouldn't trigger it when the media control is removed automatically by the system. Currently, the system only dismisses the notification automatically when the media session is destroyed, or when the notification is already removed by other means such as when pausing the app. User-initated dismissal can happen via the long press menu, or by swiping away paused media when the resumption setting is off. Bug: 335875159 Bug: 339904764 Test: atest com.android.systemui.media.controls Test: manual with test app: verify intent is sent when dismissing via long press and is not sent when destroying the session Test: manual, as above with media_controls_refactor flag enabled Test: manual, turn off resumption, verify intent is sent after swiping away paused media Flag: aconfig com.android.systemui.media_controls_user_initiated_dismiss DEVELOPMENT Change-Id: I49e9b8e5c84383fc3bb2633ec39b71a8f2b9bdb6
Diffstat (limited to 'libs/input/PointerControllerContext.cpp')
0 files changed, 0 insertions, 0 deletions