diff options
author | Steve Block <steveblock@google.com> | 2011-10-06 10:35:33 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-10-06 10:35:33 -0700 |
commit | 16721242556a5e41b81ae07bdd212bff066d50ee (patch) | |
tree | 1fdca7cfbec72107afd945f0848bf077a49206e0 | |
parent | 923154914d7afa5b434d10daa3da10353109754c (diff) | |
parent | 7b65a3eb29198632d74df22582835d3399da5b85 (diff) | |
download | frameworks_base-16721242556a5e41b81ae07bdd212bff066d50ee.zip frameworks_base-16721242556a5e41b81ae07bdd212bff066d50ee.tar.gz frameworks_base-16721242556a5e41b81ae07bdd212bff066d50ee.tar.bz2 |
Merge "Improve a warning message in WebViewCore's EventHub"
-rw-r--r-- | core/java/android/webkit/WebViewCore.java | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/core/java/android/webkit/WebViewCore.java b/core/java/android/webkit/WebViewCore.java index 440ee79..ea29ad1 100644 --- a/core/java/android/webkit/WebViewCore.java +++ b/core/java/android/webkit/WebViewCore.java @@ -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; |