Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9dd25479 authored by Jorim Jaggi's avatar Jorim Jaggi Committed by android-build-merger
Browse files

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

am: 11e0c882

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

Change-Id: I618cdf794c5ba5654a2825c60dae873a6d6aab2a
parents a02c7352 11e0c882
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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");
                }