• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

frameworks/base


Commit MetaInfo

修訂893247955ee24b7951e7fa9e4e14b646af25ed71 (tree)
時間2014-08-27 19:18:40
作者jshe32X <jianchunx.shen@inte...>
CommiterChih-Wei Huang

Log Message

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

set it to null.

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>

Change Summary

差異

--- a/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java
+++ b/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java
@@ -211,6 +211,11 @@ public class ImageWallpaper extends WallpaperService {
211211 if (mReceiver != null) {
212212 unregisterReceiver(mReceiver);
213213 }
214+
215+ if (mBackground != null) {
216+ mBackground.recycle();
217+ mBackground = null;
218+ }
214219 }
215220
216221 void updateSurfaceSize(SurfaceHolder surfaceHolder) {