Renaming PrefsStorage.resetPassword() to .removeEntry()
This commit is contained in:
parent
e07e571e63
commit
71f567d65a
|
@ -129,8 +129,8 @@ public class KeychainModule extends ReactContextBaseJavaModule {
|
|||
cipherStorage.removeKey(service);
|
||||
}
|
||||
}
|
||||
// And then we reset
|
||||
prefsStorage.resetPassword(service);
|
||||
// And then we remove the entry in the shared preferences
|
||||
prefsStorage.removeEntry(service);
|
||||
|
||||
promise.resolve(true);
|
||||
} catch (KeyStoreAccessException e) {
|
||||
|
|
|
@ -46,7 +46,7 @@ public class PrefsStorage {
|
|||
return null;
|
||||
}
|
||||
|
||||
public void resetPassword(String service) {
|
||||
public void removeEntry(String service) {
|
||||
service = service == null ? EMPTY_STRING : service;
|
||||
|
||||
String keyForUsername = getKeyForUsername(service);
|
||||
|
|
Loading…
Reference in New Issue