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

Commit 9e2b578f authored by John Reck's avatar John Reck Committed by Android (Google) Code Review
Browse files

Merge "never attach null functor" into jb-dev

parents 8e01ee57 1266692b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -7890,8 +7890,10 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc
        ViewRootImpl viewRoot = mWebView.getViewRootImpl();
        if (mWebView.isHardwareAccelerated() && viewRoot != null) {
            functor = nativeGetDrawGLFunction(mNativeClass);
            if (functor != 0) {
                viewRoot.attachFunctor(functor);
            }
        }

        if (functor == 0
                || mWebView.getLayerType() != View.LAYER_TYPE_NONE) {