Merge "Switch to "quiet" screenshot success when window destroyed" into tm-qpr-dev

This commit is contained in:
Miranda Kephart
2022-12-22 20:24:15 +00:00
committed by Android (Google) Code Review

View File

@@ -448,6 +448,10 @@ public class ScreenshotController {
// Any cleanup needed when the service is being destroyed.
void onDestroy() {
if (mSaveInBgTask != null) {
// just log success/failure for the pre-existing screenshot
mSaveInBgTask.setActionsReadyListener(this::logSuccessOnActionsReady);
}
removeWindow();
releaseMediaPlayer();
releaseContext();