summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2018-06-20 10:48:05 -0700
committerJean-Michel Trivi <jmtrivi@google.com>2018-07-11 22:03:22 +0000
commitdc98489cfdafda23e7be9065b3283ae5b8d86ac1 (patch)
treea17cef1037f658ab5e35c88c04252b0485815a9c /tools/aapt2/java/JavaClassGenerator.cpp
parentef6a5bf7559b984090be347c221d382992e432bf (diff)
NotificationPlayer: release MediaPlayer on error and exception
Add a lock to synchronize changes to mPlayer in the playback thread and callback thread. Refactor the exception handling CreationAndCompletionThread to always release the player that was set up to play the sound. In the error and completion callbacks release the media player. Bug: 110021815 Test: play notifications with wrong URI, verify players are released. Change-Id: Ibbd06a64c8211dff24b4cfc5960d017721eca123
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions