WM: Mark screen rotation layer as opaque

When rotating the device, if the screenshot of the display is not
opaque, the user might see other layers appear through
the screenshot. This will look like ghost images. We fix this
by marking the layer as opaque.

Test: rotate homescreen with The Mandalorian wallpaper
Fixes: 191128850

Change-Id: I5b1e7bb2ff028bfe5f6dd31929ddf58f0f7a1a78
This commit is contained in:
Vishnu Nair
2021-06-29 11:20:18 -07:00
parent 35929095bd
commit 619af0b8ce

View File

@@ -212,6 +212,7 @@ class ScreenRotationAnimation {
String name = "RotationLayer";
mScreenshotLayer = displayContent.makeOverlay()
.setName(name)
.setOpaque(true)
.setSecure(isSecure)
.setCallsite("ScreenRotationAnimation")
.setBLASTLayer()