ophio / secure-preferences

Android secure shared preferences using Android Keystore system
https://medium.com/@vashisthg/android-secure-shared-preferences-10f8356a4c2b
Apache License 2.0
348 stars 56 forks source link

SharedPreferencesListener #23

Open recoverrelax opened 7 years ago

recoverrelax commented 7 years ago

I have this code:


override fun onSharedPreferenceChanged(sharedPreferences: SharedPreferences, key: String) {
        if (key == PrefsUserInfo.USER_BG_IMAGE_PATH) {
            // do something
        }
    }

And the returned key argument is encoded, so i cannot check for a specific shared preference key. Is this intended?