mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-27 04:42:51 +08:00
[CB-1022] Reverted nanoTime back to currentTimeMillis. Updated mobile-spec tests as well. This passes all accel tests.
This commit is contained in:
parent
85aa740c98
commit
2eb4c5e960
@ -215,7 +215,7 @@ public class AccelListener extends Plugin implements SensorEventListener {
|
|||||||
if (this.accuracy >= SensorManager.SENSOR_STATUS_ACCURACY_MEDIUM) {
|
if (this.accuracy >= SensorManager.SENSOR_STATUS_ACCURACY_MEDIUM) {
|
||||||
|
|
||||||
// Save time that event was received
|
// Save time that event was received
|
||||||
this.timestamp = System.nanoTime();
|
this.timestamp = System.currentTimeMillis();
|
||||||
this.x = event.values[0];
|
this.x = event.values[0];
|
||||||
this.y = event.values[1];
|
this.y = event.values[1];
|
||||||
this.z = event.values[2];
|
this.z = event.values[2];
|
||||||
|
Loading…
Reference in New Issue
Block a user