summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanesh M <daneshm90@gmail.com>2014-05-13 14:28:14 -0700
committerDanesh M <daneshm90@gmail.com>2014-05-13 14:28:14 -0700
commit9319afbea6b17e42bcee0716a7d08caccec880df (patch)
tree432ae20f8125d2ae23972ec6598d056d2e26dbdb
parent614620e5d2c4d820fd3a26fa61f8cab7f3a60f93 (diff)
downloadandroid_packages_apps_Trebuchet-9319afbea6b17e42bcee0716a7d08caccec880df.tar.gz
android_packages_apps_Trebuchet-9319afbea6b17e42bcee0716a7d08caccec880df.tar.bz2
android_packages_apps_Trebuchet-9319afbea6b17e42bcee0716a7d08caccec880df.zip
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
-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 3502043ea..f8e5233f7 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) {