commit | eed375091fbd1ec9a5edb52cb5665cb03b031881 | [log] [tgz] |
---|---|---|
author | Ahmad Khalil <khalilahmad@google.com> | Wed Aug 16 10:51:42 2023 +0000 |
committer | Ahmad Khalil <khalilahmad@google.com> | Fri Aug 18 12:27:13 2023 +0000 |
tree | 38ef2721e5aae53e8c95ed3ae18c828b8558bd81 | |
parent | 8c5aa74b217171d25e8b6bd93d38c1a6bbfd52c5 [diff] |
Fix NotificationPlayer wakelock being held for too long. We added a try/finally to the run() method, to make sure the wakelock gets released even if there was a crash. We also added a couple of try/catch blocks to log any issues releasing the MediaPlayer and abandoning audio focus. Fix: 293371948 Test: N/A Change-Id: Idfa4049b70ceb1bbdb5afce8f1cc8381796d6bbe