mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-20 23:56:20 +08:00
Fixing AccelListener to conform to 1.5
This commit is contained in:
parent
42b1bb6fac
commit
95d8d5bb83
@ -35,11 +35,10 @@ public class AccelListener implements SensorListener{
|
||||
sensorManager.unregisterListener(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onAccuracyChanged(int sensor, int accuracy) {
|
||||
// This should call the FAIL method
|
||||
}
|
||||
@Override
|
||||
|
||||
public void onSensorChanged(int sensor, float[] values) {
|
||||
if (sensor != SensorManager.SENSOR_ACCELEROMETER || values.length < 3)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user