secure-storage-android icon indicating copy to clipboard operation
secure-storage-android copied to clipboard

"Contains" fails for keys of sets

Open gmale opened this issue 4 years ago • 0 comments

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 avatar Oct 01 '20 00:10 gmale