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

Merge commit '436743075aa3994365dc8c72a6be3ec90cb44d69'

* commit '436743075aa3994365dc8c72a6be3ec90cb44d69':
  Prevents the WindowManager from requesting empty or negative surfaces.
This commit is contained in:
Romain Guy
2009-10-01 13:58:08 -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,