From afa35a83aeb3479fc2569f8e745a298a01e7cc1c Mon Sep 17 00:00:00 2001 From: sonora Date: Wed, 28 Jun 2017 07:29:39 +0200 Subject: [PATCH] add logging speed filter "> 0", workaround for GPS chipset motion detection, --- .../net/osmand/plus/monitoring/SettingsMonitoringActivity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/monitoring/SettingsMonitoringActivity.java b/OsmAnd/src/net/osmand/plus/monitoring/SettingsMonitoringActivity.java index fedc92482b..fa1049f791 100644 --- a/OsmAnd/src/net/osmand/plus/monitoring/SettingsMonitoringActivity.java +++ b/OsmAnd/src/net/osmand/plus/monitoring/SettingsMonitoringActivity.java @@ -104,9 +104,10 @@ public class SettingsMonitoringActivity extends SettingsBaseActivity { } cat.addPreference(createListPreference(settings.SAVE_TRACK_PRECISION, names, floatValues, R.string.save_track_precision, R.string.save_track_precision_descr)); - floatValues = new Float[] {0.f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f}; + floatValues = new Float[] {0.f, 0.000001f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f}; names = new String[floatValues.length]; names[0] = getString(R.string.shared_string_not_selected); + names[1] = "> 0"; for(int i = 1; i < floatValues.length; i++) { names[i] = floatValues[i].intValue() + " " + getString(R.string.km_h); floatValues[i] = floatValues[i] / 3.6f;