Skip to content

Commit

Permalink
Properly trim LruResourceCache
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=179077833
  • Loading branch information
kurtn authored and sjudd committed Dec 20, 2017
1 parent 73759b9 commit 429b7e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

0 comments on commit 429b7e2

Please sign in to comment.