forked from upstream-mirrors/OpenTracks
Add copy constructor to SensorDataSet to avoid undesired changes.
This commit is contained in:
+1
-2
@@ -166,8 +166,7 @@ public class BluetoothRemoteSensorManager implements BluetoothConnectionManager.
|
||||
}
|
||||
|
||||
public SensorDataSet getSensorDataSet() {
|
||||
// TODO Should return a copy.
|
||||
return sensorDataSet;
|
||||
return new SensorDataSet(sensorDataSet);
|
||||
}
|
||||
|
||||
public void reset() {
|
||||
|
||||
Reference in New Issue
Block a user