Merge "Fix crash in movie studio." into honeycomb

This commit is contained in:
Romain Guy
2011-01-26 18:46:29 -08:00
committed by Android (Google) Code Review

View File

@@ -169,7 +169,7 @@ public class SurfaceView extends View {
@Override @Override
public boolean onPreDraw() { public boolean onPreDraw() {
// reposition ourselves where the surface is // reposition ourselves where the surface is
mHaveFrame = true; mHaveFrame = getWidth() > 0 && getHeight() > 0;
updateWindow(false, false); updateWindow(false, false);
return true; return true;
} }