incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fil...@apache.org
Subject android commit: [CB-1022] Reverted nanoTime back to currentTimeMillis. Updated mobile-spec tests as well. This passes all accel tests.
Date Wed, 11 Jul 2012 17:23:59 GMT
Updated Branches:
  refs/heads/master 85aa740c9 -> 2eb4c5e96


[CB-1022] Reverted nanoTime back to currentTimeMillis. Updated mobile-spec tests as well.
This passes all accel tests.


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

Branch: refs/heads/master
Commit: 2eb4c5e960d633f67c9767b9cdd254111476b2cd
Parents: 85aa740
Author: Fil Maj <maj.fil@gmail.com>
Authored: Wed Jul 11 10:26:14 2012 -0700
Committer: Fil Maj <maj.fil@gmail.com>
Committed: Wed Jul 11 10:26:14 2012 -0700

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


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/2eb4c5e9/framework/src/org/apache/cordova/AccelListener.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/AccelListener.java b/framework/src/org/apache/cordova/AccelListener.java
index fdba7be..4fd8718 100755
--- a/framework/src/org/apache/cordova/AccelListener.java
+++ b/framework/src/org/apache/cordova/AccelListener.java
@@ -215,7 +215,7 @@ public class AccelListener extends Plugin implements SensorEventListener
{
         if (this.accuracy >= SensorManager.SENSOR_STATUS_ACCURACY_MEDIUM) {
 
             // Save time that event was received
-            this.timestamp = System.nanoTime();
+            this.timestamp = System.currentTimeMillis();
             this.x = event.values[0];
             this.y = event.values[1];
             this.z = event.values[2];


Mime
View raw message