Skip to content

Commit e0d5cee

Browse files
Teng-Hui ZhuAndroid (Google) Code Review
authored andcommitted
Merge "Request Layout after video size changed" into jb-mr1-dev
2 parents e370c46 + f5d102e commit e0d5cee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/java/android/widget/VideoView.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ public void onVideoSizeChanged(MediaPlayer mp, int width, int height) {
284284
mVideoHeight = mp.getVideoHeight();
285285
if (mVideoWidth != 0 && mVideoHeight != 0) {
286286
getHolder().setFixedSize(mVideoWidth, mVideoHeight);
287+
requestLayout();
287288
}
288289
}
289290
};

0 commit comments

Comments
 (0)