Extract SensorHandler from GainManager for re-use.

This commit is contained in:
Dennis Guse
2026-01-29 18:17:15 +01:00
parent 167d90332e
commit f8aa456549
8 changed files with 178 additions and 116 deletions
@@ -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());
}