Merge "Make ContentCache LRU, rather than LRI"
This commit is contained in:
commit
d07a2312b7
@ -389,7 +389,8 @@ public final class ContentCache extends LinkedHashMap<String, Cursor> {
|
||||
* @param maxSize the maximum number of content cursors to cache
|
||||
*/
|
||||
public ContentCache(String name, String[] baseProjection, int maxSize) {
|
||||
super();
|
||||
// Third argument true makes this LRU, rather than LRI
|
||||
super(maxSize, .75F, true);
|
||||
mName = name;
|
||||
mMaxSize = maxSize;
|
||||
mBaseProjection = baseProjection;
|
||||
|
Loading…
Reference in New Issue
Block a user