Merge "Use current display surface size for custom rotation animation" into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-04-21 03:11:12 +00:00
committed by Android (Google) Code Review

View File

@@ -597,8 +597,8 @@ class ScreenRotationAnimation {
return startAnimation(initializeBuilder()
.setSurfaceControl(mScreenshotLayer)
.setAnimationLeashParent(mDisplayContent.getOverlayLayer())
.setWidth(mWidth)
.setHeight(mHeight)
.setWidth(mDisplayContent.getSurfaceWidth())
.setHeight(mDisplayContent.getSurfaceHeight())
.build(),
createWindowAnimationSpec(mRotateAlphaAnimation),
this::onAnimationEnd);