Merge "End screenshot animation early on layout change" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
719cd831a9
@@ -573,6 +573,10 @@ public class ScreenshotController {
|
||||
mScreenshotView.updateDisplayCutoutMargins(
|
||||
mWindowManager.getCurrentWindowMetrics().getWindowInsets()
|
||||
.getDisplayCutout());
|
||||
// screenshot animation calculations won't be valid anymore, so just end
|
||||
if (mScreenshotAnimation != null && mScreenshotAnimation.isRunning()) {
|
||||
mScreenshotAnimation.end();
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user