commit | 35fbe2a5923d45ebcdfb3ad74efd1089a05e8737 | [log] [tgz] |
---|---|---|
author | Adam Cohen <adamcohen@google.com> | Tue May 22 14:10:14 2012 -0700 |
committer | Adam Cohen <adamcohen@google.com> | Tue May 22 14:10:14 2012 -0700 |
tree | 7b52ebbe3bd1caecfab4ad492b93a3c8465c4639 | |
parent | 9c06ac09c3530c5f0bc0b47a3350eedb5b539c35 [diff] |
Fix ANR which could occur for collection widgets with very large items -> We cache RemoteViews which populate the AdapterViews, but only up to a total memory amount of 2MB. The remainder of the cache is pruned out. If _every_ item is greater than 2MB, we were failing to prune the last item, leaving the framework in a loop on a bg thread, but holding a lock required by the main thread. Change-Id: I0574a25a59ebec6586ae223fff6605c0fee953c3