Merge "Use current display surface size for custom rotation animation" into rvc-dev am: 281e6cefb5 am: cb01b60a58 am: a723ef04b3

Change-Id: I66b5258d01dabe43ea887b26253c2c86e1afd85e
This commit is contained in:
TreeHugger Robot
2020-04-21 11:24:23 +00:00
committed by Automerger Merge Worker

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);