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

Commit 1266692b authored by Chris Craik's avatar Chris Craik
Browse files

never attach null functor

bug:6412902

Change-Id: I26a5f80ae13cc19df3daa4d4e7e5401778f76dbb
parent f1790eb5
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) {