Merge "Fix Recent thumbnails aren't taken when leaving an activity via notification"

This commit is contained in:
Mathias Agopian 2011-08-24 17:53:21 -07:00 committed by Android (Google) Code Review
commit e46016d052

View File

@ -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]);