commit | a1226a7a8a9923fb230ca5657c249aa4f7fdbe43 | [log] [tgz] |
---|---|---|
author | Narayan Kamath <narayan@google.com> | Thu Feb 20 10:27:55 2014 +0000 |
committer | Narayan Kamath <narayan@google.com> | Thu Feb 20 10:27:55 2014 +0000 |
tree | 157cd9a6aacd5341353270d9195ff29565a853df | |
parent | c4f6c351e18380e712d5d365d2a13cfa5674daf7 [diff] |
Make LruCache.resize(int) public bug: https://code.google.com/p/android/issues/detail?id=65062 bug: https://code.google.com/p/android/issues/detail?id=35349 Change-Id: Ia271bc45ba2b4c0f81b61b6147be5530ee2dfd67
diff --git a/api/current.txt b/api/current.txt index 46ff80c..edcf17b 100644 --- a/api/current.txt +++ b/api/current.txt
@@ -27145,6 +27145,7 @@ method public final V put(K, V); method public final synchronized int putCount(); method public final V remove(K); + method public void resize(int); method public final synchronized int size(); method protected int sizeOf(K, V); method public final synchronized java.util.Map<K, V> snapshot();
diff --git a/core/java/android/util/LruCache.java b/core/java/android/util/LruCache.java index dd504c1..4015488 100644 --- a/core/java/android/util/LruCache.java +++ b/core/java/android/util/LruCache.java
@@ -87,9 +87,8 @@ /** * Sets the size of the cache. - * @param maxSize The new maximum size. * - * @hide + * @param maxSize The new maximum size. */ public void resize(int maxSize) { if (maxSize <= 0) {