forked from upstream-mirrors/OpenTracks
Cycling speed sensor: wheel diameter can now be 100mm until 4000mm
Fixes #1447.
This commit is contained in:
@@ -45,7 +45,7 @@ public class SensorsSettingsFragment extends PreferenceFragmentCompat {
|
|||||||
if (newValue instanceof String) {
|
if (newValue instanceof String) {
|
||||||
try {
|
try {
|
||||||
int newValueInt = Integer.parseInt((String) newValue);
|
int newValueInt = Integer.parseInt((String) newValue);
|
||||||
return newValueInt > 500 && newValueInt < 4000;
|
return newValueInt >= 100 && newValueInt < 4000;
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
Log.w(TAG, "Entered string is no number.");
|
Log.w(TAG, "Entered string is no number.");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user