summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Tetiana Meronyk <tetianameronyk@google.com> 2024-09-06 18:23:29 +0000
committer Tetiana Meronyk <tetianameronyk@google.com> 2024-09-17 11:15:30 +0000
commit4d0b38e6ad1701bc77aa66bfe0b74d31cb6b7582 (patch)
treee07c59cbb9cf942908df57435e0a768656e78ed8 /libs/input/PointerController.cpp
parent781e3ec8d3c08473b0847f70713d65f0cb79d4ea (diff)
Take AudioFocusStack state into account when showing/dismissing notification
Audio can lose focus due to being overtaken by another another focus request. In this case it remains in the focus stack but is moved from the top. If this happens, the notification should remain visible and only dismissed if the AudioFocusInfo leaves the stack. And if notification is visible, do not create create a new notification when the focus moves back to the top of the stack. Refactor BackgroundUserSoundNotifier to improve readability. Add new test cases. Bug: 365971142 Bug: 355596432 Bug: 355576058 Test: atest BackgroundUserSoundNotifierTest Flag: EXEMPT bugfix Change-Id: Ide8be8219cefad660b62cd0e33023be9a9da6016
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions