Wrap settings StringSet in new object to allow modification

This commit is contained in:
RichyHBM 2017-11-14 19:22:26 +00:00
parent 6957e869ab
commit 2ece604dc3

View file

@ -126,7 +126,7 @@ public class Settings {
}
private Set<String> getStringSet(int keyId, Set<String> defaultValue) {
return settings.getStringSet(getResString(keyId), defaultValue);
return new HashSet<String>(settings.getStringSet(getResString(keyId), defaultValue));
}
private void setBoolean(int keyId, boolean value) {