am 9825ec61: Prevents the WindowManager from requesting empty or negative surfaces.

Merge commit '9825ec61b4a40ed92a5bb28019289e5bab9cfb56' into eclair-plus-aosp

* commit '9825ec61b4a40ed92a5bb28019289e5bab9cfb56':
  Prevents the WindowManager from requesting empty or negative surfaces.
This commit is contained in:
Romain Guy
2009-10-01 01:25:45 -07:00
committed by Android Git Automerger

View File

@@ -7072,6 +7072,11 @@ public class WindowManagerService extends IWindowManager.Stub
h = mRequestedHeight;
}
// Something is wrong and SurfaceFlinger will not like this,
// try to revert to sane values
if (w <= 0) w = 1;
if (h <= 0) h = 1;
try {
mSurface = new Surface(
mSession.mSurfaceSession, mSession.mPid,