Don\'t throw away wallpaper bitmap just because we are hidden. am: ed0e1a68a4 am: 840165f0bf
am: 0808da6835
* commit '0808da6835130b73d2057fca3a34829cde596e29':
Don't throw away wallpaper bitmap just because we are hidden.
Change-Id: Ic305fff516794eea7020039a9ba685b6d28d6dbd
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user