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: Id1af47665ea63354c6f6e6f8f01761b7c917d2ad
This commit is contained in:
@@ -166,8 +166,9 @@ public class ImageWallpaper extends WallpaperService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void trimMemory(int level) {
|
public void trimMemory(int level) {
|
||||||
if (level >= ComponentCallbacks2.TRIM_MEMORY_RUNNING_LOW &&
|
if (level >= ComponentCallbacks2.TRIM_MEMORY_RUNNING_LOW
|
||||||
mBackground != null) {
|
&& level <= ComponentCallbacks2.TRIM_MEMORY_RUNNING_CRITICAL
|
||||||
|
&& mBackground != null) {
|
||||||
if (DEBUG) {
|
if (DEBUG) {
|
||||||
Log.d(TAG, "trimMemory");
|
Log.d(TAG, "trimMemory");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user