From 9e3e7e1820a7c96bb9b9ec45a20137b4380170be Mon Sep 17 00:00:00 2001 From: Andrew Grieve Date: Tue, 11 Sep 2012 14:51:38 -0400 Subject: [PATCH] Remove TODO comment about calling webView from non-ui thread. I tried it and it turned out to be a bit slower instead of faster. --- framework/src/org/apache/cordova/NativeToJsMessageQueue.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/framework/src/org/apache/cordova/NativeToJsMessageQueue.java b/framework/src/org/apache/cordova/NativeToJsMessageQueue.java index 807e87ea..8e022b4d 100755 --- a/framework/src/org/apache/cordova/NativeToJsMessageQueue.java +++ b/framework/src/org/apache/cordova/NativeToJsMessageQueue.java @@ -303,8 +303,6 @@ public class NativeToJsMessageQueue { webView.setNetworkAvailable(true); } public void onNativeToJsMessageAvailable() { - // TODO(agrieve): consider running this *not* on the main thread, since it just - // sends a message under-the-hood anyways. cordova.getActivity().runOnUiThread(runnable); } }