summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanesh M <daneshm90@gmail.com>2014-05-13 21:28:14 (GMT)
committerAbhisek Devkota <ciwrl@cyanogenmod.com>2014-05-13 22:33:15 (GMT)
commit46c118a3dba721724f5c819f535d0d410d7c6185 (patch)
treea9b8977484a63479f3c59e79ddb8a10513353cf9
parent5bd2daf53614d9d47514be7c6ac702474a523cef (diff)
downloadandroid_packages_apps_Trebuchet-46c118a3dba721724f5c819f535d0d410d7c6185.zip
android_packages_apps_Trebuchet-46c118a3dba721724f5c819f535d0d410d7c6185.tar.gz
android_packages_apps_Trebuchet-46c118a3dba721724f5c819f535d0d410d7c6185.tar.bz2
Trebuchet : Destroy cropview to avoid leaks in picker
If the cropview's TiledImageRenderer is rendering threads, the activity context gets leaked. Avoid that by invoking its destroy in onDestroy() of activity. Change-Id: I8503e88d1cab7fc8dab61ba7da148579902f0477 (cherry picked from commit 9319afbea6b17e42bcee0716a7d08caccec880df)
-rw-r--r--src/com/android/launcher3/WallpaperPickerActivity.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/launcher3/WallpaperPickerActivity.java b/src/com/android/launcher3/WallpaperPickerActivity.java
index 3502043..f8e5233 100644
--- a/src/com/android/launcher3/WallpaperPickerActivity.java
+++ b/src/com/android/launcher3/WallpaperPickerActivity.java
@@ -529,6 +529,7 @@ public class WallpaperPickerActivity extends WallpaperCropActivity {
mWallpaperStrip.setAlpha(1f);
mWallpaperStrip.setVisibility(View.VISIBLE);
}
+ mCropView.destroy();
}
protected void onSaveInstanceState(Bundle outState) {