5acb3e091bc334d4e0f367a36f8d62a0add02b39 |
|
16-Feb-2012 |
Makoto Onuki <omakoto@google.com> |
Fix deadlock caused by the fast indexer cache Also, - Split up putAndGetBundle() into put() and buildExtraBundle(). The old design was to avoid taking a Bundle as a parameter, which I generally don't like because it's not self-descrictive. But splitting it up makes the structure of bundleFastScrollingIndexExtras much cleaner -- the get() and put() calls are now in a single method, bundleFastScrollingIndexExtras(). - Removed mFastScrollingIndexCacheLock. I don't really like synchronizing on a non final member either, but mFastScrollingIndexCache is essentially final, so I decided to be lazy. Bug 6020589 Change-Id: If842e52e5334452a52cf8d19c460d52329fc81f4
/packages/providers/ContactsProvider/src/com/android/providers/contacts/FastScrollingIndexCache.java
|