Commit 967ac72
committed
PrefService: fix bug in remove method
When removing a key, there are actually two different scenarios:
1. In the case of Map or List, the key is actually the name of a child
node whose key/value pairs are the elements of the collection.
2. In the case of String or primitive values, the key really is a key
in the backing preferences node.
In the case of (1), the child node should be removed, whereas in the
case of (2), the key should simply be removed. The code was handling
the former, but not the latter.1 parent 5fb1ca5 commit 967ac72
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| 310 | + | |
310 | 311 | | |
311 | 312 | | |
312 | 313 | | |
| |||
0 commit comments