BUGFIX-988. String preferences will be stored without leading/tailing

white spaces.
This commit is contained in:
AFedasenka 2012-05-25 23:02:45 +02:00
parent e2636bccb7
commit a9d20568c1

View file

@ -386,7 +386,7 @@ public class OsmandSettings {
@Override @Override
protected boolean setValue(SharedPreferences prefs, String val) { protected boolean setValue(SharedPreferences prefs, String val) {
return prefs.edit().putString(getId(), val).commit(); return prefs.edit().putString(getId(), val.trim()).commit();
} }
} }