mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Fixing memory leak in WallpaperCropActivity
issue 15516788 Change-Id: I6feb4cb72052bc7f19e9c30957bff7dcccd5bc9d
This commit is contained in:
@@ -133,6 +133,14 @@ public class WallpaperCropActivity extends Activity {
|
||||
setCropViewTileSource(bitmapSource, true, false, onLoad);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onDestroy() {
|
||||
if (mCropView != null) {
|
||||
mCropView.destroy();
|
||||
}
|
||||
super.onDestroy();
|
||||
}
|
||||
|
||||
public void setCropViewTileSource(
|
||||
final BitmapRegionTileSource.BitmapSource bitmapSource, final boolean touchEnabled,
|
||||
final boolean moveToLeft, final Runnable postExecute) {
|
||||
|
||||
Reference in New Issue
Block a user