Skip to content

Commit d763c2c

Browse files
committed
Make MediaController use low profile system UI
This makes the MediaController iused by the full screen html5 video view copy the system ui visibility of its owner. Some issues remain. b/5494143 Change-Id: I6b157226974befbee5ba685d42d1ef72c113664d
1 parent b4529b0 commit d763c2c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/java/android/webkit/HTML5VideoFullScreen.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ public void decideDisplayMode() {
150150
private void prepareForFullScreen() {
151151
// So in full screen, we reset the MediaPlayer
152152
mPlayer.reset();
153-
setMediaController(new MediaController(mProxy.getContext()));
153+
MediaController mc = new MediaController(mProxy.getContext());
154+
mc.setSystemUiVisibility(mLayout.getSystemUiVisibility());
155+
setMediaController(mc);
154156
mPlayer.setScreenOnWhilePlaying(true);
155157
prepareDataAndDisplayMode(mProxy);
156158
}

0 commit comments

Comments
 (0)