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

Commit 16721242 authored by Steve Block's avatar Steve Block Committed by Android (Google) Code Review
Browse files

Merge "Improve a warning message in WebViewCore's EventHub"

parents 92315491 7b65a3eb
Loading
Loading
Loading
Loading
+4 −13
Original line number Diff line number Diff line
@@ -1662,24 +1662,15 @@ public final class WebViewCore {
                mDrawIsScheduled = false;
            }
            if (mMessages != null) {
                Log.w(LOGTAG, "Not supported in this case.");
                Throwable throwable = new Throwable(
                        "EventHub.removeMessages(int what = " + what + ") is not supported " +
                        "before the WebViewCore is set up.");
                Log.w(LOGTAG, Log.getStackTraceString(throwable));
            } else {
                mHandler.removeMessages(what);
            }
        }

        private synchronized boolean hasMessages(int what) {
            if (mBlockMessages) {
                return false;
            }
            if (mMessages != null) {
                Log.w(LOGTAG, "hasMessages() is not supported in this case.");
                return false;
            } else {
                return mHandler.hasMessages(what);
            }
        }

        private synchronized void sendMessageDelayed(Message msg, long delay) {
            if (mBlockMessages) {
                return;