summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimation.cpp
diff options
context:
space:
mode:
author Miranda Kephart <mkephart@google.com> 2023-03-20 12:25:48 -0400
committer Miranda Kephart <mkephart@google.com> 2023-03-20 18:16:44 +0000
commit4890cbe7cd6f247bf93514456d13f78e71225b91 (patch)
tree95c99b6585f27a264aeffa943a6f513465b0a63e /cmds/bootanimation/BootAnimation.cpp
parent5895ed660b7f9c9f9566628e486d0c1e5d72b6bf (diff)
Add a timeout when loading and releasing screenshot shutter sound
Right now, we load the sound on the background but must release it on the main thread since the service is being destroyed. There's currently no timeout, so if the sound fails to load for some reason this will never succeed and will block forever. This means that once the screenshots process attempts destruction (e.g. when the UI is dismissed) no further screenshots can be taken. This change adds a timeout so that even if the camera sound fails to load, the process is still able to close successfully. Bug: 273688513 Test: manual; take successive screenshots on a device where audio load fails (see bug) Change-Id: I0801c39547304cbab15c5f0589298002e1c7c70a Change-Id: Ica277e15a1c55d1e5487d4791bd1dce137c35674
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
0 files changed, 0 insertions, 0 deletions