List of usage examples for android.util Config DEBUG
boolean DEBUG
To view the source code for android.util Config DEBUG.
Click Source Link
From source file:android.webkit.LoadListener.java
/** * Cycle through our messages for synchronous loads. *//* w w w .j a v a2s . co m*/ /* package */ void loadSynchronousMessages() { if (Config.DEBUG && !mSynchronous) { throw new AssertionError(); } // Note: this can be called twice if it is a synchronous network load, // and there is a cache, but it needs to go to network to validate. If // validation succeed, the CacheLoader is used so this is first called // from http thread. Then it is called again from WebViewCore thread // after the load is completed. So make sure the queue is cleared but // don't set it to null. for (int size = mMessageQueue.size(); size > 0; size--) { handleMessage(mMessageQueue.remove(0)); } }