frameworks/base
Revisão | 893247955ee24b7951e7fa9e4e14b646af25ed71 (tree) |
---|---|
Hora | 2014-08-27 19:18:40 |
Autor | jshe32X <jianchunx.shen@inte...> |
Commiter | Chih-Wei Huang |
SystemUI: Recycle the old wallpaper background bitmap after we choose a new wallpaper.
BZ: 101064
RootCause: ImageWallpaper didn't call old background bitmap's recycle before
Category: aosp improvement
Domain: AOSP-Framework-Media
Origin: internal
Upstream-Candidate: yes
Orig-Change-Id: I27f6971a3edd26472b69e59b542b27fd7c8e7b90
Change-Id: Ice59aea79f8137d5995d7a5ce9a6ed7903750d30
Signed-off-by: jshe32X<jianchunx.shen@intel.com>
@@ -211,6 +211,11 @@ public class ImageWallpaper extends WallpaperService { | ||
211 | 211 | if (mReceiver != null) { |
212 | 212 | unregisterReceiver(mReceiver); |
213 | 213 | } |
214 | + | |
215 | + if (mBackground != null) { | |
216 | + mBackground.recycle(); | |
217 | + mBackground = null; | |
218 | + } | |
214 | 219 | } |
215 | 220 | |
216 | 221 | void updateSurfaceSize(SurfaceHolder surfaceHolder) { |