diff options
| author | 2022-07-25 10:06:25 -0400 | |
|---|---|---|
| committer | 2022-07-25 10:06:25 -0400 | |
| commit | 527b2124a1ff8ba30552c959eb83c3dae18744ae (patch) | |
| tree | c708c5a7782375cc9a92173436966bf5ded42529 /libs/androidfw/StringPool.cpp | |
| parent | 59bf347867b4160d9ac2b7754201cc8fea9b5acf (diff) | |
Catch failure to set screenshot sound
In some cases, MediaPlayer.create fails and propagates up an
IllegalStateException, which causes the screenshot process to
crash. Catch this error (and just don't play the screenshot sound
if it fails to load).
Bug: 239236526
Fix: 239236526
Test: forced the setDataSource to throw an IOException (which is
silently swallowed by MediaPlayer; see bug; and then thrown
as an IllegalStateException since the data source was never
actually set)
Change-Id: I7ae6ae4cc69b8e3eccfbb7df7558787e50db755f
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions