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

Commit 3159886e authored by Teng-Hui Zhu's avatar Teng-Hui Zhu Committed by Android (Google) Code Review
Browse files

Merge "Fix a NPE if the Chrome Client is not setup"

parents 1775a0c8 592b2a65
Loading
Loading
Loading
Loading
+12 −11
Original line number Diff line number Diff line
@@ -253,6 +253,7 @@ public class HTML5VideoFullScreen extends HTML5VideoView
        mLayout.setVisibility(View.VISIBLE);

        WebChromeClient client = webView.getWebChromeClient();
        if (client != null) {
            client.onShowCustomView(mLayout, mCallback);
            // Plugins like Flash will draw over the video so hide
            // them while we're playing.
@@ -264,7 +265,7 @@ public class HTML5VideoFullScreen extends HTML5VideoView
                mLayout.addView(mProgressView, layoutParams);
                mProgressView.setVisibility(View.VISIBLE);
            }

        }
    }

    /**