Closed BhimAle closed 9 years ago
Ok thanks @BhimAle More correctly here's the example / test that fails....
public void testChangeUserPassword() {
SecurePreferences securePrefs = new SecurePreferences(getContext(), "myfirstpassword", USER_PREFS_WITH_PASSWORD);
Editor editor = securePrefs.edit();
final String key = "pwchgfoo";
final String value = "pwchgbar";
editor.putString(key,value);
editor.commit();
securePrefs.handlePasswordChange("newPassword", getContext());
String valueFromNewPassword = securePrefs.getString(key, null);
assertEquals(value, valueFromNewPassword);
}
@BhimAle this is fixed in master branch and will be included in 0.1.3 release.
@scottyab ok Thank You very much :)
While using one static key , it is working as charm, but my situation is bit different, need to change the key often. So I tried to use
But not working.