am ede54ce2: Merge "Fix crash in movie studio." into honeycomb

* commit 'ede54ce2fe3252d4ab56b90de464b35a6920970d':
  Fix crash in movie studio.
This commit is contained in:
Romain Guy
2011-01-26 18:47:59 -08:00
committed by Android Git Automerger

View File

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