Cycling speed sensor: wheel diameter can now be 100mm until 4000mm

Fixes #1447.
This commit is contained in:
Dennis Guse
2023-01-17 22:47:59 +01:00
parent b4e6d10fbe
commit 9dff965a52
@@ -45,7 +45,7 @@ public class SensorsSettingsFragment extends PreferenceFragmentCompat {
if (newValue instanceof String) {
try {
int newValueInt = Integer.parseInt((String) newValue);
return newValueInt > 500 && newValueInt < 4000;
return newValueInt >= 100 && newValueInt < 4000;
} catch (NumberFormatException e) {
Log.w(TAG, "Entered string is no number.");
}