Don\'t throw away wallpaper bitmap just because we are hidden. am: ed0e1a68a4

am: 11e0c882e0

* commit '11e0c882e094f4964814f3c671950161248f004a':
  Don't throw away wallpaper bitmap just because we are hidden.

Change-Id: I618cdf794c5ba5654a2825c60dae873a6d6aab2a
This commit is contained in:
Jorim Jaggi
2016-05-16 21:58:30 +00:00
committed by android-build-merger

View File

@@ -166,8 +166,9 @@ public class ImageWallpaper extends WallpaperService {
}
public void trimMemory(int level) {
if (level >= ComponentCallbacks2.TRIM_MEMORY_RUNNING_LOW &&
mBackground != null) {
if (level >= ComponentCallbacks2.TRIM_MEMORY_RUNNING_LOW
&& level <= ComponentCallbacks2.TRIM_MEMORY_RUNNING_CRITICAL
&& mBackground != null) {
if (DEBUG) {
Log.d(TAG, "trimMemory");
}