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

Commit 16e75e0a authored by Clark Scheff's avatar Clark Scheff
Browse files

WallpaperPicker: Destroy cropview to avoid leaks

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: I0804c903d14d3f3d13529f0fe90d12784d97e93f
(cherry picked from commit c91c765c)
parent a9e8aa63
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1145,6 +1145,7 @@ public class LockWallpaperPickerActivity extends WallpaperCropActivity {
            mWallpaperStrip.setAlpha(1f);
            mWallpaperStrip.setVisibility(View.VISIBLE);
        }
        mCropView.destroy();
    }

    @Override
+1 −0
Original line number Diff line number Diff line
@@ -487,6 +487,7 @@ public class WallpaperPickerActivity extends WallpaperCropActivity {
            mWallpaperStrip.setAlpha(1f);
            mWallpaperStrip.setVisibility(View.VISIBLE);
        }
        mCropView.destroy();
    }

    protected void onSaveInstanceState(Bundle outState) {