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