Skip to content

Commit 422400f

Browse files
author
Teng-Hui Zhu
committed
Fix a crash.
End can happen when error happens, but media controller may be not ready yet. bug:5340224 Change-Id: I94607dfdf26d2dc4c7bbc9c2a62f98deccb8d198
1 parent 9ac3204 commit 422400f

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
@@ -323,7 +323,9 @@ public int getBufferPercentage() {
323323

324324
@Override
325325
public void showControllerInFullScreen() {
326-
mMediaController.show(0);
326+
if (mMediaController != null) {
327+
mMediaController.show(0);
328+
}
327329
}
328330

329331
// Other listeners functions:

0 commit comments

Comments
 (0)