Not include fullscreen opaque window on screenshot

Extend the fullscreen meaning by adding opaque drawn check on
screenshot application; if there is a fullscreen window but not
opaque, we will continue finding behind windows; otherwise ending up
including behind windows. It's able to help avoiding capturing BLACK
screenshot bitmap.

Change-Id: I1c7e8f513c366688ea8001c3d0c799f3522f0ffd
Signed-off-by: tingna_sung <tingna_sung@htc.com>
This commit is contained in:
tingna_sung
2014-10-21 15:26:38 +08:00
committed by Tingna Sung
parent af5bd75b3d
commit a901f57580

View File

@@ -6084,6 +6084,10 @@ public class WindowManagerService extends IWindowManager.Stub
ws.isDisplayedLw()) {
screenshotReady = true;
}
if (ws.isFullscreen(dw, dh) && ws.isOpaqueDrawn()){
break;
}
}
if (appToken != null && appWin == null) {