diff options
| author | 2011-03-08 18:42:18 -0800 | |
|---|---|---|
| committer | 2011-03-08 18:42:18 -0800 | |
| commit | 3e95ab97a2dbb4385eae8cb934664615d340ba5b (patch) | |
| tree | 20e4df811b0120a314c28bc064e90ee68b7efe7f | |
| parent | 2bf0410bd2bae6cb49eef8d302b0c8534ada67fe (diff) | |
| parent | 88d2d0390d41eb37481936872f1a03db39b8526d (diff) | |
am 88d2d039: am 3de6a9b6: Merge "Fix 4025684: Don\'t include wallpaper dimensions in bounds calculation" into honeycomb-mr1
* commit '88d2d0390d41eb37481936872f1a03db39b8526d':
Fix 4025684: Don't include wallpaper dimensions in bounds calculation
| -rw-r--r-- | services/java/com/android/server/wm/WindowManagerService.java | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/services/java/com/android/server/wm/WindowManagerService.java b/services/java/com/android/server/wm/WindowManagerService.java index 1e9fd02caffe..8ccfbbab68c7 100644 --- a/services/java/com/android/server/wm/WindowManagerService.java +++ b/services/java/com/android/server/wm/WindowManagerService.java @@ -4791,13 +4791,17 @@ public class WindowManagerService extends IWindowManager.Stub if (maxLayer < ws.mAnimLayer) { maxLayer = ws.mAnimLayer; } - final Rect wf = ws.mFrame; - final Rect cr = ws.mContentInsets; - int left = wf.left + cr.left; - int top = wf.top + cr.top; - int right = wf.right - cr.right; - int bottom = wf.bottom - cr.bottom; - frame.union(left, top, right, bottom); + + // Don't include wallpaper in bounds calculation + if (!ws.mIsWallpaper) { + final Rect wf = ws.mFrame; + final Rect cr = ws.mContentInsets; + int left = wf.left + cr.left; + int top = wf.top + cr.top; + int right = wf.right - cr.right; + int bottom = wf.bottom - cr.bottom; + frame.union(left, top, right, bottom); + } } Binder.restoreCallingIdentity(ident); |