adorsys / secure-storage-android

Store strings & credentials securely encrypted on your device
Apache License 2.0
367 stars 58 forks source link

"Contains" fails for keys of sets #89

Open gmale opened 4 years ago

gmale commented 4 years ago

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