commit | e3ca04839783c8cd30fe1009f041f81615adec5d | [log] [tgz] |
---|---|---|
author | tingna_sung <tingna_sung@htc.com> | Tue Oct 21 13:22:16 2014 +0800 |
committer | tingna_sung <tingna_sung@htc.com> | Mon Dec 01 15:22:43 2014 +0800 |
tree | 8eaa6e9e703b4653d77979a8c2e76bf78e64e620 | |
parent | 461eaf79a726f5a754f467d7f3dd163aaa463857 [diff] |
Avoid capture all black screenshot bitmap Captured screenshot bitmap is all black one if none of windows is surface shown. Change-Id: I651b2ade1865926d61f945167d60219535fa8bf8 Signed-off-by: tingna_sung <tingna_sung@htc.com>
diff --git a/services/core/java/com/android/server/wm/WindowManagerService.java b/services/core/java/com/android/server/wm/WindowManagerService.java index 7f7d93b..1c03ced 100644 --- a/services/core/java/com/android/server/wm/WindowManagerService.java +++ b/services/core/java/com/android/server/wm/WindowManagerService.java
@@ -6101,7 +6101,7 @@ } if (ws.mAppToken != null && ws.mAppToken.token == appToken && - ws.isDisplayedLw()) { + ws.isDisplayedLw() && winAnim.mSurfaceShown) { screenshotReady = true; }