Merge "Don't take invisible screenshots" into oc-mr1-dev

This commit is contained in:
TreeHugger Robot
2017-09-15 17:50:51 +00:00
committed by Android (Google) Code Review

View File

@@ -3020,7 +3020,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;
}