summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/Program.java
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2010-08-25 15:06:25 -0700
committerDianne Hackborn <hackbod@google.com>2010-08-25 15:09:17 -0700
commit43d9ac81f7722bb539ee67023f10b9f43abbf202 (patch)
treee81f0d385b2b5f6b7d3965c32cf6e890d750770b /graphics/java/android/renderscript/Program.java
parent8395b4625b96f2133e2e4f595fdc69fbe222e4fc (diff)
Fix a fun bug with multiple service bindings from an activity.
There was a flaw in the service management, when the same activity is doing a bindService() for the same service IBinder. In this case the activity would correctly keep a list of all generated connections, however some other data structures would assume there is only one connection per IBinder, and thus only remember the last. When that last connection was unbound, the service would be destroyed since it thought there were no more connections. Then when the activity was finished, it would try to destroy the service again and end up with an ANR because the service was already gone and would not respond. Change-Id: I59bde38bc24e78147b90b0a7cd525c2a1d20489f
Diffstat (limited to 'graphics/java/android/renderscript/Program.java')
0 files changed, 0 insertions, 0 deletions