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:
@@ -7072,6 +7072,11 @@ public class WindowManagerService extends IWindowManager.Stub
|
|||||||
h = mRequestedHeight;
|
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 {
|
try {
|
||||||
mSurface = new Surface(
|
mSurface = new Surface(
|
||||||
mSession.mSurfaceSession, mSession.mPid,
|
mSession.mSurfaceSession, mSession.mPid,
|
||||||
|
|||||||
Reference in New Issue
Block a user