Set final crop on wallpaper instead of intersect clip with stack bounds

Wallpaper's clip rect is offset by its window offsets, it can't be
intersect directly with stack bounds.

bug: 28763785
Change-Id: Id87d668c9e59832498c9c62730617d0a5a9207c2
This commit is contained in:
Chong Zhang
2016-05-13 15:38:02 -07:00
parent 02bc008607
commit dcf0183cea

View File

@@ -1333,7 +1333,7 @@ class WindowStateAnimator {
final TaskStack stack = task.mStack;
if (stack != null && !stack.isFullscreen()) {
stack.getDimBounds(mTmpStackBounds);
clipRect.intersect(mTmpStackBounds);
finalClipRect.set(mTmpStackBounds);
}
}
}