mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-07 23:03:11 +08:00
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.
This commit is contained in:
parent
18893bf6cd
commit
9e3e7e1820
@ -303,8 +303,6 @@ public class NativeToJsMessageQueue {
|
|||||||
webView.setNetworkAvailable(true);
|
webView.setNetworkAvailable(true);
|
||||||
}
|
}
|
||||||
public void onNativeToJsMessageAvailable() {
|
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);
|
cordova.getActivity().runOnUiThread(runnable);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user