From 24bb836221cb61e5797011392c523eeadf3edd77 Mon Sep 17 00:00:00 2001 From: Bryce Curtis Date: Wed, 13 Jul 2011 00:21:34 -0500 Subject: [PATCH] Shouldn't return error on first call. This prevents successful invocation, which prevents deviceready from firing. --- framework/src/com/phonegap/NetworkManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/src/com/phonegap/NetworkManager.java b/framework/src/com/phonegap/NetworkManager.java index 2d5ceaed..19a8a5c6 100755 --- a/framework/src/com/phonegap/NetworkManager.java +++ b/framework/src/com/phonegap/NetworkManager.java @@ -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; }