Merge "Don't take invisible screenshots" into oc-mr1-dev am: 6d9d42f6aa

am: 41fe2539f3

Change-Id: I75229cf1b8aafc7c8a933a9d2c7c6d4ac19e68d4
This commit is contained in:
Jorim Jaggi
2017-09-15 18:13:30 +00:00
committed by android-build-merger

View File

@@ -3070,7 +3070,7 @@ class DisplayContent extends WindowContainer<DisplayContent.DisplayChildWindowCo
final boolean foundTargetWs =
(w.mAppToken != null && w.mAppToken.token == appToken)
|| (mScreenshotApplicationState.appWin != null && wallpaperOnly);
if (foundTargetWs && winAnim.getShown()) {
if (foundTargetWs && winAnim.getShown() && winAnim.mLastAlpha > 0f) {
mScreenshotApplicationState.screenshotReady = true;
}