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

Commit 2302fe52 authored by Teng-Hui Zhu's avatar Teng-Hui Zhu
Browse files

fix one NPE when webChromeClient don't have progress view support

Change-Id: I5a88365f216d5dea38ab2eac9562d26b00a2d617
parent 8821ba86
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -314,11 +314,13 @@ public class HTML5VideoFullScreen extends HTML5VideoView

    @Override
    protected void switchProgressView(boolean playerBuffering) {
        if (mProgressView != null) {
            if (playerBuffering) {
                mProgressView.setVisibility(View.VISIBLE);
            } else {
                mProgressView.setVisibility(View.GONE);
            }
        }
        return;
    }
}