Merge "Revert "Crop windowing layer to that of display size in screen rotation animation"" into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
bc3886a904
@@ -600,7 +600,7 @@ class ScreenRotationAnimation {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private SurfaceAnimator startDisplayRotation() {
|
private SurfaceAnimator startDisplayRotation() {
|
||||||
SurfaceAnimator animator = startAnimation(initializeBuilder()
|
return startAnimation(initializeBuilder()
|
||||||
.setAnimationLeashParent(mDisplayContent.getSurfaceControl())
|
.setAnimationLeashParent(mDisplayContent.getSurfaceControl())
|
||||||
.setSurfaceControl(mDisplayContent.getWindowingLayer())
|
.setSurfaceControl(mDisplayContent.getWindowingLayer())
|
||||||
.setParentSurfaceControl(mDisplayContent.getSurfaceControl())
|
.setParentSurfaceControl(mDisplayContent.getSurfaceControl())
|
||||||
@@ -609,13 +609,6 @@ class ScreenRotationAnimation {
|
|||||||
.build(),
|
.build(),
|
||||||
createWindowAnimationSpec(mRotateEnterAnimation),
|
createWindowAnimationSpec(mRotateEnterAnimation),
|
||||||
this::onAnimationEnd);
|
this::onAnimationEnd);
|
||||||
|
|
||||||
// Crop the animation leash to avoid extended wallpaper from showing over
|
|
||||||
// mBackColorSurface
|
|
||||||
Rect displayBounds = mDisplayContent.getBounds();
|
|
||||||
mDisplayContent.getPendingTransaction()
|
|
||||||
.setWindowCrop(animator.mLeash, displayBounds.width(), displayBounds.height());
|
|
||||||
return animator;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private SurfaceAnimator startScreenshotAlphaAnimation() {
|
private SurfaceAnimator startScreenshotAlphaAnimation() {
|
||||||
|
|||||||
Reference in New Issue
Block a user