Merge "Switch to "quiet" screenshot success when window destroyed" into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
9abbc3a37a
@@ -448,6 +448,10 @@ public class ScreenshotController {
|
|||||||
|
|
||||||
// Any cleanup needed when the service is being destroyed.
|
// Any cleanup needed when the service is being destroyed.
|
||||||
void onDestroy() {
|
void onDestroy() {
|
||||||
|
if (mSaveInBgTask != null) {
|
||||||
|
// just log success/failure for the pre-existing screenshot
|
||||||
|
mSaveInBgTask.setActionsReadyListener(this::logSuccessOnActionsReady);
|
||||||
|
}
|
||||||
removeWindow();
|
removeWindow();
|
||||||
releaseMediaPlayer();
|
releaseMediaPlayer();
|
||||||
releaseContext();
|
releaseContext();
|
||||||
|
|||||||
Reference in New Issue
Block a user