diff options
author | Mathias Agopian <mathias@google.com> | 2011-08-24 17:44:41 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2011-08-24 17:44:41 -0700 |
commit | e328134b8fa4e5bfe0277a1fa55a9fbd99d27ef0 (patch) | |
tree | 0248c2bcdbd4e8cf62723ccd15f07056e83b86b0 /services/surfaceflinger | |
parent | bc714a357d79c2315cc665eb706b465334cb9716 (diff) | |
download | frameworks_base-e328134b8fa4e5bfe0277a1fa55a9fbd99d27ef0.zip frameworks_base-e328134b8fa4e5bfe0277a1fa55a9fbd99d27ef0.tar.gz frameworks_base-e328134b8fa4e5bfe0277a1fa55a9fbd99d27ef0.tar.bz2 |
Fix Recent thumbnails aren't taken when leaving an activity via notification
When taking screenshots we need to use the full drawing state list
instead of the visible list.
Bug: 5186823
Change-Id: I214ee0203aaf8e2c038e44581f7f1ae36edf08c5
Diffstat (limited to 'services/surfaceflinger')
-rw-r--r-- | services/surfaceflinger/SurfaceFlinger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index 0080202..6fde361 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -2207,7 +2207,7 @@ status_t SurfaceFlinger::captureScreenImplLocked(DisplayID dpy, return BAD_VALUE; // make sure none of the layers are protected - const Vector< sp<LayerBase> >& layers(mVisibleLayersSortedByZ); + const LayerVector& layers(mDrawingState.layersSortedByZ); const size_t count = layers.size(); for (size_t i=0 ; i<count ; ++i) { const sp<LayerBase>& layer(layers[i]); |