Merge "Don't take invisible screenshots" into oc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
6d9d42f6aa
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user