OSDN Git Service

Add synchronization to DeferredBindRunnables
authorJason Monk <jmonk@google.com>
Tue, 22 Apr 2014 13:23:19 +0000 (09:23 -0400)
committerJason Monk <jmonk@google.com>
Tue, 22 Apr 2014 14:33:33 +0000 (10:33 -0400)
commita0a7a7440e860c61c8261c5009dbe351869896b3
treeaf50f49d1a1d49da0b09f335bdcbd8a646b89d7d
parentf2a791a798ce24d81f3410c83873087690db4ffd
Add synchronization to DeferredBindRunnables

Seems that on occasion the list is being iterated on while being
modified.  To fix this added synchronization to all modifications
to the list as well as iterating on a copy of the list to cut
down on time holding the lock.

Bug: 12885709
Change-Id: I4287bdedbeb8e438b49c1f79b44819a752c28a69
src/com/android/launcher3/LauncherModel.java