summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2013-02-12 15:42:34 -0800
committerJean-Michel Trivi <jmtrivi@google.com>2013-02-13 09:41:10 -0800
commit6313cbe1d05c60afae3f8a5d2460c5cf4714fa1d (patch)
tree2387c458ea203872189b1fef7fdebea78398c690 /graphics/java/android/renderscript/RenderScript.java
parent97ad2cd1a80eef7db0fe19f15c417de4fa752519 (diff)
Fix AudioFocus for back-to-back notifications
A single instance of NotificationPlayer will play notifications back-to-back, and was, for each requesting AudioFocus. But as a new notification was about to be played, its accompanying thread was terminated, and the completion listener was never called, and therefore AudioFocus was not released (e.g. two requests for one release). The fix consists in requesting AudioFocus only once and abandonning it when the only reported completion is received. Added a FIXME note about a better solution to be implemented. Bug 7680947 Change-Id: Ica9d5c1eb5d57c89ceebe66282af69f0f7d43667
Diffstat (limited to 'graphics/java/android/renderscript/RenderScript.java')
0 files changed, 0 insertions, 0 deletions