yandextaxitech/binaryprefs

editor.clear() not clears prefs

xdigit opened this issue · 4 comments

Hi!

SharedPreferences.Editor editor = sharedPreferences.edit();
editor.clear();
editor.commit();

Not clears anything in my case, maybe some issues with threads, but calling editor.remove("some_string") for every preference do the job

I can confirm that such problem exists. But I tried reproduce it on new clean project and unfortunatelly for me it worked well. Thats why I decided that problem is in my code but not in BinaryPreferences.

Can you please show what of version of binary preferences do you use?
Also one little question: can you reproduce this kind of issue on clear project?

Version 1.0.0-BETA-2
I didn't try with clear project

Should be fixed in the future release (1.0.0).