Set the initial network-available state on start-up.

I've been assuming that it always starts as true, but this will ensure
that it does.
This commit is contained in:
Andrew Grieve 2012-09-07 09:49:24 -04:00
parent 6ca6d88bff
commit ee34f11c29

View File

@ -187,8 +187,12 @@ public class NativeToJsMessageQueue {
}
}
};
OnlineEventsBridgeMode() {
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);
}
}