forked from upstream-mirrors/OpenTracks
Extract SensorHandler from GainManager for re-use.
This commit is contained in:
@@ -253,7 +253,7 @@ public class PreferencesUtils {
|
||||
return isReportSpeed(track.activityTypeLocalized());
|
||||
}
|
||||
|
||||
private static String getBluetoothSensorAddressNone() {
|
||||
public static String getBluetoothSensorAddressNone() {
|
||||
return SensorType.NONE.getPreferenceValue();
|
||||
}
|
||||
|
||||
@@ -264,10 +264,6 @@ public class PreferencesUtils {
|
||||
.orElse(SensorType.REMOTE);
|
||||
}
|
||||
|
||||
public static String getBarometerSensorAddress() {
|
||||
return getString(R.string.settings_sensor_bluetooth_pressure_key, getBluetoothSensorAddressNone());
|
||||
}
|
||||
|
||||
public static String getBluetoothHeartRateSensorAddress() {
|
||||
return getString(R.string.settings_sensor_bluetooth_heart_rate_key, getBluetoothSensorAddressNone());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user