Merge "End screenshot animation early on layout change" into sc-dev am: 719cd831a9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14922737 Change-Id: I0b9c2616103a24e5ec3a18e3761887308afb78fe
This commit is contained in:
@@ -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