diff --git a/packages/SystemUI/src/com/android/systemui/screenshot/ScreenshotController.java b/packages/SystemUI/src/com/android/systemui/screenshot/ScreenshotController.java index a9ae34be523f..eadc44f71af3 100644 --- a/packages/SystemUI/src/com/android/systemui/screenshot/ScreenshotController.java +++ b/packages/SystemUI/src/com/android/systemui/screenshot/ScreenshotController.java @@ -510,6 +510,7 @@ void onDestroy() { removeWindow(); releaseMediaPlayer(); releaseContext(); + TaskStackChangeListeners.getInstance().unregisterTaskStackListener(mTaskListener); mBgExecutor.shutdownNow(); }