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

This commit is contained in:
Teng-Hui Zhu
2012-08-24 10:50:48 -07:00
committed by Android (Google) Code Review

View File

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