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

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

Merge "Workaround issue of getting 0,0,0,0 inval rects"

parents f82b111a ca835dbd
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -8679,7 +8679,12 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc
            Log.v(LOGTAG, "NEW_PICTURE_MSG_ID {" +
                    b.left+","+b.top+","+b.right+","+b.bottom+"}");
        }
        invalidateContentRect(draw.mInvalRegion.getBounds());
        Rect invalBounds = draw.mInvalRegion.getBounds();
        if (!invalBounds.isEmpty()) {
            invalidateContentRect(invalBounds);
        } else {
            mWebView.invalidate();
        }

        if (mPictureListener != null) {
            mPictureListener.onNewPicture(getWebView(), capturePicture());