Merge "Fix issue #3415137: New wallpaper size breaks thumbnails." into honeycomb

This commit is contained in:
Dianne Hackborn
2011-02-02 12:29:47 -08:00
committed by Android (Google) Code Review

View File

@ -5101,6 +5101,9 @@ public class WindowManagerService extends IWindowManager.Stub
}
Binder.restoreCallingIdentity(ident);
// Constrain frame to the screen size.
frame.intersect(0, 0, dw, dh);
if (frame.isEmpty() || maxLayer == 0) {
return null;
}