Merge "End screenshot animation early on layout change" into sc-dev

This commit is contained in:
Miranda Kephart
2021-06-18 14:56:04 +00:00
committed by Android (Google) Code Review

View File

@@ -573,6 +573,10 @@ public class ScreenshotController {
mScreenshotView.updateDisplayCutoutMargins( mScreenshotView.updateDisplayCutoutMargins(
mWindowManager.getCurrentWindowMetrics().getWindowInsets() mWindowManager.getCurrentWindowMetrics().getWindowInsets()
.getDisplayCutout()); .getDisplayCutout());
// screenshot animation calculations won't be valid anymore, so just end
if (mScreenshotAnimation != null && mScreenshotAnimation.isRunning()) {
mScreenshotAnimation.end();
}
} }
}); });
}); });