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

am: ed0e1a68a4

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

Change-Id: Ifcc6aeb2a916781d8a8a7523f8a00926b45b0d2e
This commit is contained in:
Jorim Jaggi
2016-05-16 21:51:44 +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");
}