diff --git a/library/src/main/java/com/bumptech/glide/load/engine/cache/LruResourceCache.java b/library/src/main/java/com/bumptech/glide/load/engine/cache/LruResourceCache.java index ff2ad2ff8d..f34c11adc5 100644 --- a/library/src/main/java/com/bumptech/glide/load/engine/cache/LruResourceCache.java +++ b/library/src/main/java/com/bumptech/glide/load/engine/cache/LruResourceCache.java @@ -49,7 +49,7 @@ public void trimMemory(int level) { } else if (level >= android.content.ComponentCallbacks2.TRIM_MEMORY_UI_HIDDEN) { // Entering list of cached background apps // Evict oldest half of our bitmap cache - trimToSize(getCurrentSize() / 2); + trimToSize(getMaxSize() / 2); } } }