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

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

Merge "Don't resend WEBKIT_DRAW if paused"

parents c9286ebb 1c1e6df0
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -2000,8 +2000,12 @@ public final class WebViewCore {
        if (DebugFlags.WEB_VIEW_CORE) Log.v(LOGTAG, "webkitDraw start");
        draw.mBaseLayer = nativeRecordContent(draw.mInvalRegion, draw.mContentSize);
        if (draw.mBaseLayer == 0) {
            if (mWebView != null && !mWebView.isPaused()) {
                if (DebugFlags.WEB_VIEW_CORE) Log.v(LOGTAG, "webkitDraw abort, resending draw message");
                mEventHub.sendMessage(Message.obtain(null, EventHub.WEBKIT_DRAW));
            } else {
                if (DebugFlags.WEB_VIEW_CORE) Log.v(LOGTAG, "webkitDraw abort, webview paused");
            }
            return;
        }
        webkitDraw(draw);