summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2011-03-08 14:38:59 -0800
committerJean-Michel Trivi <jmtrivi@google.com>2011-03-08 15:12:26 -0800
commit382f4e6ea4dcf39105b36364582ed01642daa93c (patch)
treed21bed6bd137dfb1079f01e9a9f91bbfc41cf84d /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
parentff23352ea70339c4230d628ab294fbf52159da06 (diff)
Fix bug 4064086 Use a death handler on audio focus changes from mode
Use a death handler when audio focus changes are caused by audio mode changes. The bug comes from the fact that audio focus clients that use the audio mode for automatic focus handling didn't register a death handler, which was set to null. When such a client died, this handler was compared against the one to remove from the audio focus stack, which resulted in an NPE. The fix consists in registering a valid IBinder object in the audio focus stack, even for clients whose focus requests originate from a change in audio mode, as implemented in the handleFocusForCalls() method. Change-Id: Id9e1d3d10afcd99969285f6d60fc4d7dde1e4a10
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions