From a9d20568c14882c85cf4d9539894db89663468b2 Mon Sep 17 00:00:00 2001 From: AFedasenka Date: Fri, 25 May 2012 23:02:45 +0200 Subject: [PATCH] BUGFIX-988. String preferences will be stored without leading/tailing white spaces. --- OsmAnd/src/net/osmand/plus/OsmandSettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } }