Merge "Request Layout after video size changed" into jb-mr1-dev
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user