From 9319afbea6b17e42bcee0716a7d08caccec880df Mon Sep 17 00:00:00 2001 From: Danesh M Date: Tue, 13 May 2014 14:28:14 -0700 Subject: 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 --- src/com/android/launcher3/WallpaperPickerActivity.java | 1 + 1 file changed, 1 insertion(+) 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) { -- cgit v1.2.3