From 52e85da8fa250502866195c69dd06954daf7aa0c Mon Sep 17 00:00:00 2001 From: Jorim Jaggi Date: Tue, 24 Jan 2017 16:21:39 +0100 Subject: [PATCH] If the surface of a window is displayed, screenshot We really really don't care about whether it's actually visible, onScreen, displayed, winVisible, visibleNow, readyForDisplay or whatever. The only thing that matters when screenshotting is the fact whether the surface is shown or not. If it's shown, it must be good enough for screenshotting. Period. Test: Go to settings, go to recents, make sure screenshot is taken all the time. Bug: 31339431 Change-Id: I5df77ae537b5e70f6cb17e5e18405926135d4312 --- services/core/java/com/android/server/wm/DisplayContent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/wm/DisplayContent.java b/services/core/java/com/android/server/wm/DisplayContent.java index 73e88c1958a95..914cc8de37ed5 100644 --- a/services/core/java/com/android/server/wm/DisplayContent.java +++ b/services/core/java/com/android/server/wm/DisplayContent.java @@ -2282,7 +2282,7 @@ class DisplayContent extends WindowContainer