Fixed
Status Update
Comments
jm...@google.com <jm...@google.com> #2
Hi Ed, Thank you so much for these suggestions. I've been reviewing them and merging them in. Hopefully it should be live. I've included a thank you note too in the article.
ap...@google.com <ap...@google.com> #3
Great! Thanks a lot, I'll look for the live updates soon!
an...@google.com <an...@google.com> #5
ph...@gmail.com <ph...@gmail.com> #6
Thanks a lot.
Description
I'm using the EncryptedSharedPreferences from androidx.security:security-crypto:1.0.0-rc01 .
I noticed that prefs.edit().clear().apply() does not actually clear the preferences, while prefs.edit().clear().commit() works.
Looking at the code of EncryptedSharedPreferences, I see that in the editor's commit method, mClearRequested is tested, while in the apply method it is not. This is clearly a bug.