am e0d5ceef: Merge "Request Layout after video size changed" into jb-mr1-dev

* commit 'e0d5ceefbfe6c74b458da5b84dfe0b2e7239fdf3':
  Request Layout after video size changed
This commit is contained in:
Teng-Hui Zhu
2012-08-24 10:54:16 -07:00
committed by Android Git Automerger

View File

@@ -284,6 +284,7 @@ public class VideoView extends SurfaceView implements MediaPlayerControl {
mVideoHeight = mp.getVideoHeight(); mVideoHeight = mp.getVideoHeight();
if (mVideoWidth != 0 && mVideoHeight != 0) { if (mVideoWidth != 0 && mVideoHeight != 0) {
getHolder().setFixedSize(mVideoWidth, mVideoHeight); getHolder().setFixedSize(mVideoWidth, mVideoHeight);
requestLayout();
} }
} }
}; };