diff options
author | Danesh M <daneshm90@gmail.com> | 2014-05-13 14:28:14 -0700 |
---|---|---|
committer | Danesh M <daneshm90@gmail.com> | 2014-05-13 14:28:14 -0700 |
commit | 9319afbea6b17e42bcee0716a7d08caccec880df (patch) | |
tree | 432ae20f8125d2ae23972ec6598d056d2e26dbdb | |
parent | 614620e5d2c4d820fd3a26fa61f8cab7f3a60f93 (diff) | |
download | android_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.java | 1 |
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) { |