mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-27 04:42:51 +08:00
[CB-463] added accuracy checking to native accel implementation, this way getCurrentAcceleration returns fairly accurate results
This commit is contained in:
parent
df89d33fab
commit
531efe1e30
@ -237,6 +237,7 @@ public class AccelListener extends Plugin implements SensorEventListener {
|
|||||||
if (this.status == AccelListener.STOPPED) {
|
if (this.status == AccelListener.STOPPED) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Log.d("ACCEL", "accuracy is now " + accuracy);
|
||||||
this.accuracy = accuracy;
|
this.accuracy = accuracy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user