commit | dd962ee1633b1e479bca5eae83744262fb69867f | [log] [tgz] |
---|---|---|
author | Dianne Hackborn <hackbod@google.com> | Wed Feb 02 11:11:50 2011 -0800 |
committer | Dianne Hackborn <hackbod@google.com> | Wed Feb 02 11:29:41 2011 -0800 |
tree | 44c64c2238e285d0e2b59fbeaf69ce1f2b0a8bc2 | |
parent | 261ddb81206a502a4fd4c9fe1cdc0d931c0e6db1 [diff] [blame] |
Fix issue #3415137: New wallpaper size breaks thumbnails. Change-Id: I3ce4fa8f532cc378c390138bab0ff3126fe0f0c3
diff --git a/services/java/com/android/server/WindowManagerService.java b/services/java/com/android/server/WindowManagerService.java index 7a3ef14..e1c03d4 100644 --- a/services/java/com/android/server/WindowManagerService.java +++ b/services/java/com/android/server/WindowManagerService.java
@@ -5101,6 +5101,9 @@ } Binder.restoreCallingIdentity(ident); + // Constrain frame to the screen size. + frame.intersect(0, 0, dw, dh); + if (frame.isEmpty() || maxLayer == 0) { return null; }