Shouldn't return error on first call. This prevents successful invocation, which prevents deviceready from firing.

This commit is contained in:
Bryce Curtis 2011-07-13 00:21:34 -05:00
parent 6993c7edd1
commit 24bb836221

View File

@ -105,7 +105,7 @@ public class NetworkManager extends Plugin {
if (action.equals("getConnectionInfo")) {
this.connectionCallbackId = callbackId;
NetworkInfo info = sockMan.getActiveNetworkInfo();
PluginResult pluginResult = new PluginResult(status, this.getConnectionInfo(info));
PluginResult pluginResult = new PluginResult(PluginResult.Status.OK, this.getConnectionInfo(info));
pluginResult.setKeepCallback(true);
return pluginResult;
}