diff --git a/OsmAnd/src/net/osmand/plus/OsmandSettings.java b/OsmAnd/src/net/osmand/plus/OsmandSettings.java index 664b13bfc8..9db71877c7 100644 --- a/OsmAnd/src/net/osmand/plus/OsmandSettings.java +++ b/OsmAnd/src/net/osmand/plus/OsmandSettings.java @@ -386,7 +386,7 @@ public class OsmandSettings { @Override protected boolean setValue(SharedPreferences prefs, String val) { - return prefs.edit().putString(getId(), val).commit(); + return prefs.edit().putString(getId(), val.trim()).commit(); } }