BUGFIX-988. String preferences will be stored without leading/tailing
white spaces.
This commit is contained in:
parent
e2636bccb7
commit
a9d20568c1
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue