mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-16 15:53:07 +02:00
SensorManager and GPSManager: prefer to crash rather than hide usage errors.
This commit is contained in:
@@ -62,20 +62,14 @@ public class SensorManager implements SharedPreferences.OnSharedPreferenceChange
|
||||
}
|
||||
|
||||
public void stop(Context context) {
|
||||
if (bluetoothSensorManager != null) {
|
||||
bluetoothSensorManager.stop(context);
|
||||
bluetoothSensorManager = null;
|
||||
}
|
||||
bluetoothSensorManager.stop(context);
|
||||
bluetoothSensorManager = null;
|
||||
|
||||
if (altitudeSumManager != null) {
|
||||
altitudeSumManager.stop(context);
|
||||
altitudeSumManager = null;
|
||||
}
|
||||
altitudeSumManager.stop(context);
|
||||
altitudeSumManager = null;
|
||||
|
||||
if (gpsManager != null) {
|
||||
gpsManager.stop(context);
|
||||
gpsManager = null;
|
||||
}
|
||||
gpsManager.stop(context);
|
||||
gpsManager = null;
|
||||
|
||||
sensorDataSet.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user