mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-09 04:43:06 +02:00
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