Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Contains" fails for keys of sets #89

Open
gmale opened this issue Oct 1, 2020 · 0 comments
Open

"Contains" fails for keys of sets #89

gmale opened this issue Oct 1, 2020 · 0 comments

Comments

@gmale
Copy link

gmale commented Oct 1, 2020

The contains function does not work as expected for values that are Sets of Strings. This issue is due to the way that sets are stored using multiple keys.

Expected:

SecurePreferences.setValue(context, "some_key", setOf("one", "two", "three"))
SecurePreferences.contains(context, "some_key") // returns false. Should return true
gmale pushed a commit to gmale/secure-storage-android that referenced this issue Oct 1, 2020
gmale pushed a commit to gmale/secure-storage-android that referenced this issue Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant