cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject android commit: [CB-2418] Fix geolocation's velocity field broken on Android
Date Wed, 13 Mar 2013 00:55:10 GMT
Updated Branches:
  refs/heads/master e0d0d6c45 -> fcd2c989a


[CB-2418] Fix geolocation's velocity field broken on Android


Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/fcd2c989
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/fcd2c989
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/fcd2c989

Branch: refs/heads/master
Commit: fcd2c989a25f7871a615e2f658d8ebdb6eb7fa05
Parents: e0d0d6c
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Tue Mar 12 20:54:24 2013 -0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Tue Mar 12 20:54:24 2013 -0400

----------------------------------------------------------------------
 framework/src/org/apache/cordova/GeoBroker.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/fcd2c989/framework/src/org/apache/cordova/GeoBroker.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/GeoBroker.java b/framework/src/org/apache/cordova/GeoBroker.java
index 86aa628..e7cdce0 100755
--- a/framework/src/org/apache/cordova/GeoBroker.java
+++ b/framework/src/org/apache/cordova/GeoBroker.java
@@ -150,7 +150,7 @@ public class GeoBroker extends CordovaPlugin {
             o.put("altitude", (loc.hasAltitude() ? loc.getAltitude() : null));
             o.put("accuracy", loc.getAccuracy());
             o.put("heading", (loc.hasBearing() ? (loc.hasSpeed() ? loc.getBearing() : null)
: null));
-            o.put("speed", loc.getSpeed());
+            o.put("velocity", loc.getSpeed());
             o.put("timestamp", loc.getTime());
         } catch (JSONException e) {
             // TODO Auto-generated catch block


Mime
View raw message