I have a problem with storing string set preference. I have these utility methods for storing:
public static void putStringSet(SharedPreferences pref, Editor
This has a ridiculous amount of duplicates - I bet that you do :
set = prefs.getStringSet("X", new HashSet());
set.add("yada yada");
prefs.putStringSet("X", set);
In short android sees that set and the one inside refer to the same set and does nothing. Correct ?
See: Misbehavior when trying to store a string set using SharedPreferences