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

Commit 5c898286 authored by John Reck's avatar John Reck Committed by The Android Automerger
Browse files

Fix crash in setNewPicture

 Bug: 6412902

Change-Id: I65d8f65839c6e84440cb9d0393c35a8c488c9781
parent f0c5811f
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -7887,14 +7887,14 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc
        mSendScrollEvent = true;

        int functor = 0;
        if (mWebView.isHardwareAccelerated()
                || mWebView.getLayerType() != View.LAYER_TYPE_HARDWARE) {
        ViewRootImpl viewRoot = mWebView.getViewRootImpl();
        if (mWebView.isHardwareAccelerated() && viewRoot != null) {
            functor = nativeGetDrawGLFunction(mNativeClass);
            viewRoot.attachFunctor(functor);
        }

        if (functor != 0) {
            mWebView.getViewRootImpl().attachFunctor(functor);
        } else {
        if (functor == 0
                || mWebView.getLayerType() != View.LAYER_TYPE_NONE) {
            // invalidate the screen so that the next repaint will show new content
            // TODO: partial invalidate
            mWebView.invalidate();