OSDN Git Service

Don't take app screenshot in minimize docked stack.
authorWale Ogunwale <ogunwale@google.com>
Thu, 22 Sep 2016 15:34:42 +0000 (08:34 -0700)
committerWale Ogunwale <ogunwale@google.com>
Thu, 22 Sep 2016 20:03:23 +0000 (13:03 -0700)
commitf5d1e35316fcd027e60655b7ca6ca6341ed1e0ec
tree49d54f3eee2f828711fcb02662fee67823cbc8ad
parent245e33a0b112e50a6ee50a916e66e7c980002314
Don't take app screenshot in minimize docked stack.

When the docked stack is minimized its app windows are cropped
significantly so any screenshot taken will not display the apps
contain. So, we avoid taking a screenshot in that case.

This situation is going to be improve some in O when we switch
recents to also use saved surfaces in which cases it will be able
to display the last app content the user saw vs. just the app's
background color.

Bug: 29830173
Change-Id: I003aa074126ddcb57d5ff6dda756293146646196
services/core/java/com/android/server/am/ActivityStack.java