cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [1/7] cordova-plugin-device-motion git commit: Returning an OK PluginResult.Status when starting
Date Sat, 24 Oct 2015 01:00:44 GMT
Repository: cordova-plugin-device-motion
Updated Branches:
  refs/heads/master 742612271 -> 90ef274ea


Returning an OK PluginResult.Status when starting 

If a status of `No_Result` is returned the plugin will not work when using `navigator.accelerometer.watchAcceleration`
on Windows Phone 8

Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/commit/e3530746
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/tree/e3530746
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/diff/e3530746

Branch: refs/heads/master
Commit: e3530746c66f65c6533da9c7f8e4d72a914d8f38
Parents: 67f508d
Author: John Kalberer <jlkalberer@gmail.com>
Authored: Mon Feb 2 21:45:59 2015 -0800
Committer: John Kalberer <jlkalberer@gmail.com>
Committed: Mon Feb 2 21:45:59 2015 -0800

----------------------------------------------------------------------
 src/wp/Accelerometer.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/e3530746/src/wp/Accelerometer.cs
----------------------------------------------------------------------
diff --git a/src/wp/Accelerometer.cs b/src/wp/Accelerometer.cs
index cba911c..005e4c3 100644
--- a/src/wp/Accelerometer.cs
+++ b/src/wp/Accelerometer.cs
@@ -147,7 +147,7 @@ namespace WPCordovaClassLib.Cordova.Commands
                 DispatchCommandResult(new PluginResult(PluginResult.Status.IO_EXCEPTION,
ErrorFailedToStart));
                 return;
             }
-            PluginResult result = new PluginResult(PluginResult.Status.NO_RESULT);
+            PluginResult result = new PluginResult(PluginResult.Status.OK);
             result.KeepCallback = true;
             DispatchCommandResult(result);
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message