Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fabf1f23 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Fixing memory leak in WallpaperCropActivity

issue: 15516788
Change-Id: I53a312addbb7ce17ecf02b2f14b9e991eab42be9
parent d73aa155
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -133,6 +133,14 @@ public class WallpaperCropActivity extends Activity {
        setCropViewTileSource(bitmapSource, true, false, onLoad);
        setCropViewTileSource(bitmapSource, true, false, onLoad);
    }
    }


    @Override
    protected void onDestroy() {
        if (mCropView != null) {
            mCropView.destroy();
        }
        super.onDestroy();
    }

    public void setCropViewTileSource(
    public void setCropViewTileSource(
            final BitmapRegionTileSource.BitmapSource bitmapSource, final boolean touchEnabled,
            final BitmapRegionTileSource.BitmapSource bitmapSource, final boolean touchEnabled,
            final boolean moveToLeft, final Runnable postExecute) {
            final boolean moveToLeft, final Runnable postExecute) {