Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 422400f9 authored by Teng-Hui Zhu's avatar Teng-Hui Zhu
Browse files

Fix a crash.

End can happen when error happens, but media controller may be not ready yet.

bug:5340224
Change-Id: I94607dfdf26d2dc4c7bbc9c2a62f98deccb8d198
parent 9ac32040
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -323,8 +323,10 @@ public class HTML5VideoFullScreen extends HTML5VideoView

    @Override
    public void showControllerInFullScreen() {
        if (mMediaController != null) {
            mMediaController.show(0);
        }
    }

    // Other listeners functions:
    private MediaPlayer.OnBufferingUpdateListener mBufferingUpdateListener =