1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-03 09:49:19 +02:00

fixed Config behaviour for saved empty strings

This commit is contained in:
Nikolay Pultsin 2014-02-24 22:02:46 +00:00
parent 99fd2d3cc8
commit 138fb0e7fc
2 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,7 @@
===== 1.9.6.1 (Feb 24, 2014) =====
* Fixed some config vaues reading (e.g. background)
* Updated Czech localization (by Marek Pavelka)
===== 1.9.6 (Feb 23, 2014) ===== ===== 1.9.6 (Feb 23, 2014) =====
* Config speed optimization * Config speed optimization
* Fixed bookmarks creation & browsing problem * Fixed bookmarks creation & browsing problem

View file

@ -164,8 +164,13 @@ public final class ConfigShadow extends Config implements ServiceConnection {
final Map<String,String> values = new HashMap<String,String>(); final Map<String,String> values = new HashMap<String,String>();
for (String pair : myInterface.requestAllValuesForGroup(group)) { for (String pair : myInterface.requestAllValuesForGroup(group)) {
final String[] split = pair.split("\000"); final String[] split = pair.split("\000");
if (split.length == 2) { switch (split.length) {
values.put(split[0], split[1]); case 1:
values.put(split[0], "");
break;
case 2:
values.put(split[0], split[1]);
break;
} }
} }
return values; return values;